Struct xidlehook_core::modules::xcb::Xcb[][src]

pub struct Xcb { /* fields omitted */ }

See the crate-level documentation

Implementations

impl Xcb[src]

pub fn new() -> Result<Self>[src]

Initialize all the things, like setting up an X connection.

pub fn get_idle(&self) -> Result<Duration>[src]

Get the user’s idle time using the XScreenSaver plugin

pub fn get_fullscreen(&self) -> Result<bool>[src]

Get whether or not the user’s currently active window is fullscreen

pub fn not_when_fullscreen(self: Rc<Self>) -> NotWhenFullscreen[src]

Return a NotWhenFullscreen instance for a reference-counted self

Trait Implementations

impl Debug for Xcb[src]

Auto Trait Implementations

impl RefUnwindSafe for Xcb

impl !Send for Xcb

impl !Sync for Xcb

impl Unpin for Xcb

impl UnwindSafe for Xcb

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.