pub struct DriverMutexHandle { /* private fields */ }Expand description
Handle representing an individual client registration
Handles are used internally by DriverMutex to determine which client is requesting access
to the resource. A new, unique handle value is returned from each call to
DriverMutex::add_client(), and the client is expected to retain its handle so that it can be
used later to request the resource.
A handle produced by one DriverMutex instance cannot be used with any other DriverMutex.
Doing so will cause DriverMutex::request() to return [ErrorCode::INVAL].
Trait Implementations§
Source§impl Clone for DriverMutexHandle
impl Clone for DriverMutexHandle
impl Copy for DriverMutexHandle
impl Eq for DriverMutexHandle
Source§impl PartialEq for DriverMutexHandle
impl PartialEq for DriverMutexHandle
impl StructuralPartialEq for DriverMutexHandle
Auto Trait Implementations§
impl !Send for DriverMutexHandle
impl !Sync for DriverMutexHandle
impl Freeze for DriverMutexHandle
impl RefUnwindSafe for DriverMutexHandle
impl Unpin for DriverMutexHandle
impl UnsafeUnpin for DriverMutexHandle
impl UnwindSafe for DriverMutexHandle
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