pub enum ItemDisposal {
Disposable(Rc<dyn IDisposable>),
AsyncDisposable(Rc<dyn IAsyncDisposable>),
}Expand description
How an item is disposed: at once, or by a task (item is IDisposable, item is IAsyncDisposable).
Variants§
Disposable(Rc<dyn IDisposable>)
The item is disposed at once (IDisposable).
AsyncDisposable(Rc<dyn IAsyncDisposable>)
The item is disposed by a task (IAsyncDisposable).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ItemDisposal
impl !Send for ItemDisposal
impl !Sync for ItemDisposal
impl !UnwindSafe for ItemDisposal
impl Freeze for ItemDisposal
impl Unpin for ItemDisposal
impl UnsafeUnpin for ItemDisposal
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