pub struct FlashDetector {
pub max_flash_rate: f32,
pub max_red_intensity: f32,
pub max_flash_area: f32,
}Expand description
Flash detection for photosensitivity protection
Per spec Section 9.3: Protect against seizure-inducing content
Fields§
§max_flash_rate: f32Maximum allowed flash rate (Hz)
max_red_intensity: f32Maximum red flash intensity
max_flash_area: f32Maximum flash area (percentage of screen)
Implementations§
Trait Implementations§
Source§impl Clone for FlashDetector
impl Clone for FlashDetector
Source§fn clone(&self) -> FlashDetector
fn clone(&self) -> FlashDetector
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlashDetector
impl Debug for FlashDetector
Auto Trait Implementations§
impl Freeze for FlashDetector
impl RefUnwindSafe for FlashDetector
impl Send for FlashDetector
impl Sync for FlashDetector
impl Unpin for FlashDetector
impl UnsafeUnpin for FlashDetector
impl UnwindSafe for FlashDetector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more