Lines Matching defs:Bound
58 /// reference is valid in. For instance, the [`Bound`] context guarantees that the [`Device`] is
59 /// bound to a driver for the entire duration of the existence of a [`Device<Bound>`] reference.
61 /// Other [`DeviceContext`] types besides [`Bound`] are [`Normal`], [`Core`] and [`CoreInternal`].
188 /// Convert a [`&Device`](Device) into a [`&Device<Bound>`](Device<Bound>).
192 /// The caller is responsible to ensure that the returned [`&Device<Bound>`](Device<Bound>)
194 pub unsafe fn as_bound(&self) -> &Device<Bound> {
203 // - Any valid `Device` pointer is also a valid pointer for `Device<Bound>`.
275 impl Device<Bound> {
535 /// The specific device context types are: [`CoreInternal`], [`Core`], [`Bound`] and [`Normal`].
539 /// [`Device<Core>`] can dereference to a [`Device<Bound>`].
543 /// - [`CoreInternal`] => [`Core`] => [`Bound`] => [`Normal`]
583 /// The [`Bound`] context is the [`DeviceContext`] of a bus specific device when it is guaranteed to
586 /// The bound context indicates that for the entire duration of the lifetime of a [`Device<Bound>`]
590 /// which can be proven with the [`Bound`] device context.
593 /// provide a [`Device<Bound>`] reference to its users for this scope. This allows users to benefit
599 pub struct Bound;
604 impl Sealed for super::Bound {}
610 impl DeviceContext for Bound {}
701 $crate::device::Core => $crate::device::Bound
708 $crate::device::Bound => $crate::device::Normal
732 ::kernel::__impl_device_context_into_aref!($crate::device::Bound, $device);