pub struct TransparencyLog { /* private fields */ }Expand description
Transparency statistics for the current session.
Implementations§
Source§impl TransparencyLog
impl TransparencyLog
Sourcepub fn with_persistence(path: PathBuf) -> Self
pub fn with_persistence(path: PathBuf) -> Self
Create a transparency log with persistence.
Sourcepub fn record_keyboard_event(&self)
pub fn record_keyboard_event(&self)
Record a keyboard event.
Sourcepub fn record_keyboard_events(&self, count: u64)
pub fn record_keyboard_events(&self, count: u64)
Record multiple keyboard events.
Sourcepub fn record_mouse_event(&self)
pub fn record_mouse_event(&self)
Record a mouse event.
Sourcepub fn record_mouse_events(&self, count: u64)
pub fn record_mouse_events(&self, count: u64)
Record multiple mouse events.
Sourcepub fn record_shortcut_event(&self)
pub fn record_shortcut_event(&self)
Record a shortcut event.
Sourcepub fn stats(&self) -> TransparencyStats
pub fn stats(&self) -> TransparencyStats
Get the current statistics.
Trait Implementations§
Source§impl Debug for TransparencyLog
impl Debug for TransparencyLog
Auto Trait Implementations§
impl !Freeze for TransparencyLog
impl RefUnwindSafe for TransparencyLog
impl Send for TransparencyLog
impl Sync for TransparencyLog
impl Unpin for TransparencyLog
impl UnsafeUnpin for TransparencyLog
impl UnwindSafe for TransparencyLog
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