pub struct Bound;
Expand description
The Bound
context is the DeviceContext
of a bus specific device when it is guaranteed to
be bound to a driver.
The bound context indicates that for the entire duration of the lifetime of a Device<Bound>
reference, the Device
is guaranteed to be bound to a driver.
Some APIs, such as dma::CoherentAllocation
or Devres
rely on the Device
to be bound,
which can be proven with the Bound
device context.
Any abstraction that can guarantee a scope where the corresponding bus device is bound, should
provide a Device<Bound>
reference to its users for this scope. This allows users to benefit
from optimizations for accessing device resources, see also Devres::access
.
Trait Implementations§
impl DeviceContext for Bound
Auto Trait Implementations§
impl Freeze for Bound
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnwindSafe for Bound
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
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more