pub struct Device { /* private fields */ }
Expand description

A ref-counted device.

Invariants

ptr is valid, non-null, and has a non-zero reference count. One of the references is owned by self, and will be decremented when self is dropped.

Implementations

Creates a new device instance.

Safety

Callers must ensure that ptr is valid, non-null, and has a non-zero reference count.

Creates a new device instance from an existing RawDevice instance.

Trait Implementations

Executes the destructor for this type. Read more
Returns the raw struct device related to self.
Returns the name of the device.
Lookups a clock producer consumed by this device. Read more
Prints an emergency-level message (level 0) prefixed with device information. Read more
Prints an alert-level message (level 1) prefixed with device information. Read more
Prints a critical-level message (level 2) prefixed with device information. Read more
Prints an error-level message (level 3) prefixed with device information. Read more
Prints a warning-level message (level 4) prefixed with device information. Read more
Prints a notice-level message (level 5) prefixed with device information. Read more
Prints an info-level message (level 6) prefixed with device information. Read more
Prints a debug-level message (level 7) prefixed with device information. Read more
Prints the provided message to the console. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.