Struct smelling_salts::Watcher[][src]

pub struct Watcher(_);

Which events to watch for to trigger a wake-up.

Implementations

impl Watcher[src]

pub fn new() -> Watcher[src]

Create empty Watcher (requesting nothing)

pub unsafe fn from_raw(raw: u32) -> Watcher[src]

Create Watcher from raw bitmask

Safety

This function requires the correct usage of the bitflags from the epoll C API.

pub fn input(self) -> Self[src]

Watch for input from device.

pub fn output(self) -> Self[src]

Watch for device to be ready for output.

Trait Implementations

impl Clone for Watcher[src]

impl Copy for Watcher[src]

impl Debug for Watcher[src]

impl Default for Watcher[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.