pub struct Device(/* private fields */);
Expand description
The platform device representation.
A platform device is based on an always reference counted device:Device
instance. Cloning a
platform device, hence, also increments the base device’ reference count.
§Invariants
Device
holds a valid reference of ARef<device::Device>
whose underlying struct device
is a
member of a struct platform_device
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Device
impl !RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl !Unpin for Device
impl !UnwindSafe for Device
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more