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
Trait Implementations
sourceimpl RawDevice for Device
impl RawDevice for Device
sourcefn raw_device(&self) -> *mut device
fn raw_device(&self) -> *mut device
Returns the raw struct device
related to self
.
sourcefn clk_get(&self, id: Option<&CStr>) -> Result<Clk>
fn clk_get(&self, id: Option<&CStr>) -> Result<Clk>
Lookups a clock producer consumed by this device. Read more
sourcefn pr_emerg(&self, args: Arguments<'_>)
fn pr_emerg(&self, args: Arguments<'_>)
Prints an emergency-level message (level 0) prefixed with device information. Read more
sourcefn pr_alert(&self, args: Arguments<'_>)
fn pr_alert(&self, args: Arguments<'_>)
Prints an alert-level message (level 1) prefixed with device information. Read more
sourcefn pr_crit(&self, args: Arguments<'_>)
fn pr_crit(&self, args: Arguments<'_>)
Prints a critical-level message (level 2) prefixed with device information. Read more
sourcefn pr_err(&self, args: Arguments<'_>)
fn pr_err(&self, args: Arguments<'_>)
Prints an error-level message (level 3) prefixed with device information. Read more
sourcefn pr_warn(&self, args: Arguments<'_>)
fn pr_warn(&self, args: Arguments<'_>)
Prints a warning-level message (level 4) prefixed with device information. Read more
sourcefn pr_notice(&self, args: Arguments<'_>)
fn pr_notice(&self, args: Arguments<'_>)
Prints a notice-level message (level 5) prefixed with device information. Read more
sourcefn pr_info(&self, args: Arguments<'_>)
fn pr_info(&self, args: Arguments<'_>)
Prints an info-level message (level 6) prefixed with device information. Read more
impl Send for Device
impl Sync for Device
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more