Type Alias netstack3_core::device::RemoveDeviceResultWithContext
source · pub type RemoveDeviceResultWithContext<S, C> = RemoveDeviceResult<S, <C as ReferenceNotifiers>::ReferenceReceiver<S>>;
Expand description
An alias for RemoveDeviceResult
that extracts the receiver type from the
NonSyncContext.
Aliased Type§
enum RemoveDeviceResultWithContext<S, C> {
Removed(S),
Deferred(<C as ReferenceNotifiers>::ReferenceReceiver<S>),
}
Variants§
Removed(S)
The device was synchronously removed and no more references to it exist.
Deferred(<C as ReferenceNotifiers>::ReferenceReceiver<S>)
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.