Struct smelling_salts::Device[][src]

pub struct Device(_);
Expand description

Represents some device.

Implementations

Start checking for events on a new device from a linux file descriptor.

Register a waker to wake when the device gets an event.

Convenience function to get the raw File Descriptor of the Device.

Stop checking for events on a device from a linux file descriptor.

Returns true if this device hasn’t been waked up.

Trait Implementations

Formats the value using the given formatter. Read more

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.