Struct user_idle::UserIdle[][src]

pub struct UserIdle { /* fields omitted */ }

Implementations

Get the idle time

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

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

Get time in seconds

Get time in minutes

Get time in hours

Get time in days

Get time in weeks

Get time in months

Get time in years

Convert to a std::time::Duration

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.