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

A platform device.

Invariants

The field ptr is non-null and valid for the lifetime of the object.

Implementations

Returns id of the platform device.

Trait Implementations

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.