pub type RemoveResourceResultWithContext<S, BT> = RemoveResourceResult<S, <BT as ReferenceNotifiers>::ReferenceReceiver<S>>;
Expand description
An alias for RemoveResourceResult
that extracts the receiver type from
the bindings context.
Aliased Type§
enum RemoveResourceResultWithContext<S, BT> {
Removed(S),
Deferred(<BT as ReferenceNotifiers>::ReferenceReceiver<S>),
}
Variants§
Removed(S)
The resource was synchronously removed and no more references to it exist.
Deferred(<BT as ReferenceNotifiers>::ReferenceReceiver<S>)
The resource was marked for destruction but there are still references to it in existence. The provided receiver can be polled on to observe resource destruction completion.