Enum netstack3_core::device::RemoveDeviceResult
source · pub enum RemoveDeviceResult<R, D> {
Removed(R),
Deferred(D),
}
Expand description
The result of removing a device from core.
Variants§
Removed(R)
The device was synchronously removed and no more references to it exist.
Deferred(D)
The device was marked for destruction but there are still references to it in existence. The provided receiver can be polled on to observe device destruction completion.
Implementations§
source§impl<R> RemoveDeviceResult<R, Infallible>
impl<R> RemoveDeviceResult<R, Infallible>
sourcepub fn into_removed(self) -> R
pub fn into_removed(self) -> R
A helper function to unwrap a [RemovedDeviceResult
] that can never be
[RemovedDeviceResult::Deferred
].
Trait Implementations§
Auto Trait Implementations§
impl<R, D> RefUnwindSafe for RemoveDeviceResult<R, D>where D: RefUnwindSafe, R: RefUnwindSafe,
impl<R, D> Send for RemoveDeviceResult<R, D>where D: Send, R: Send,
impl<R, D> Sync for RemoveDeviceResult<R, D>where D: Sync, R: Sync,
impl<R, D> Unpin for RemoveDeviceResult<R, D>where D: Unpin, R: Unpin,
impl<R, D> UnwindSafe for RemoveDeviceResult<R, D>where D: UnwindSafe, R: UnwindSafe,
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