pub struct DeviceWeak<T> {
pub descriptor: Descriptor,
/* private fields */
}Fields§
§descriptor: DescriptorImplementations§
Source§impl<T> DeviceWeak<T>
impl<T> DeviceWeak<T>
pub fn upgrade(&self) -> Option<Device<T>>
pub fn try_borrow_by(&self, pid: PId) -> Result<DeviceGuard<T>, DeviceError>
pub fn spin_try_borrow_by( &self, pid: PId, ) -> Result<DeviceGuard<T>, DeviceError>
Auto Trait Implementations§
impl<T> Freeze for DeviceWeak<T>
impl<T> !RefUnwindSafe for DeviceWeak<T>
impl<T> Send for DeviceWeak<T>where
T: Send,
impl<T> Sync for DeviceWeak<T>where
T: Send,
impl<T> Unpin for DeviceWeak<T>
impl<T> !UnwindSafe for DeviceWeak<T>
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