pub struct DriverHandleRef<'a>(/* private fields */);
Expand description
An unowned reference to a driver handle type
Methods from Deref<Target = DriverHandle>§
Sourcepub fn as_handle_ref(&self) -> DriverHandleRef<'_>
pub fn as_handle_ref(&self) -> DriverHandleRef<'_>
Gets a DriverHandleRef
of this handle
Sourcepub unsafe fn get_raw(&self) -> NonZero<fdf_handle_t>
pub unsafe fn get_raw(&self) -> NonZero<fdf_handle_t>
Gets the raw handle object
§Safety
The caller must be sure to not let this handle outlive the lifetime of the object it came from.
Trait Implementations§
Source§impl<'a> Debug for DriverHandleRef<'a>
impl<'a> Debug for DriverHandleRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for DriverHandleRef<'a>
impl<'a> RefUnwindSafe for DriverHandleRef<'a>
impl<'a> Send for DriverHandleRef<'a>
impl<'a> Sync for DriverHandleRef<'a>
impl<'a> Unpin for DriverHandleRef<'a>
impl<'a> UnwindSafe for DriverHandleRef<'a>
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