pub struct FlickerDetector { /* private fields */ }Expand description
Flicker detection analyzer.
Implementations§
Source§impl FlickerDetector
impl FlickerDetector
Sourcepub fn with_random_id() -> Self
pub fn with_random_id() -> Self
Create a detector with a random UUID run ID.
Sourcepub fn events(&self) -> &[FlickerEvent]
pub fn events(&self) -> &[FlickerEvent]
Get collected events.
Sourcepub fn stats(&self) -> &AnalysisStats
pub fn stats(&self) -> &AnalysisStats
Get analysis statistics.
Sourcepub fn is_flicker_free(&self) -> bool
pub fn is_flicker_free(&self) -> bool
Check if the analyzed stream is flicker-free.
Sourcepub fn write_jsonl<W: Write>(&self, writer: W) -> Result<()>
pub fn write_jsonl<W: Write>(&self, writer: W) -> Result<()>
Write all events to a writer in JSONL format.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlickerDetector
impl RefUnwindSafe for FlickerDetector
impl Send for FlickerDetector
impl Sync for FlickerDetector
impl Unpin for FlickerDetector
impl UnsafeUnpin for FlickerDetector
impl UnwindSafe for FlickerDetector
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