pub struct UserIdle { /* private fields */ }
Implementations§
source§impl UserIdle
impl UserIdle
sourcepub fn as_nanoseconds(&self) -> u128
pub fn as_nanoseconds(&self) -> u128
Get time in milliseconds
Note: Only MacOS provides this level of resolution,
other Operating Systems will provide the same value as
self.as_milliseconds() * 1_000_000
sourcepub fn as_milliseconds(&self) -> u128
pub fn as_milliseconds(&self) -> u128
Get time in milliseconds
Note: Not all of the dbus screen savers provided
this level of resolution, in those cases this will
provide the same value as self.as_seconds() * 1000
sourcepub fn as_seconds(&self) -> u64
pub fn as_seconds(&self) -> u64
Get time in seconds
sourcepub fn as_minutes(&self) -> u64
pub fn as_minutes(&self) -> u64
Get time in minutes
Auto Trait Implementations§
impl RefUnwindSafe for UserIdle
impl Send for UserIdle
impl Sync for UserIdle
impl Unpin for UserIdle
impl UnwindSafe for UserIdle
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