#[repr(C)]pub struct DriverShutdownObserver<T: 'static> { /* private fields */ }
Expand description
A shutdown observer for [fdf_dispatcher_create
] that can call any kind of callback instead of
just a C-compatible function when a dispatcher is shutdown.
§Safety
This object relies on a specific layout to allow it to be cast between a
*mut fdf_dispatcher_shutdown_observer
and a *mut ShutdownObserver
. To that end,
it is important that this struct stay both #[repr(C)]
and that observer
be its first member.
Auto Trait Implementations§
impl<T> Freeze for DriverShutdownObserver<T>
impl<T> !RefUnwindSafe for DriverShutdownObserver<T>
impl<T> Send for DriverShutdownObserver<T>where
T: Send,
impl<T> !Sync for DriverShutdownObserver<T>
impl<T> Unpin for DriverShutdownObserver<T>
impl<T> !UnwindSafe for DriverShutdownObserver<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