SingleAssignmentDisposable
struct · ferroui-reactive · v0.5.0
struct SingleAssignmentDisposable
A disposable whose underlying disposable can be assigned once (SingleAssignmentDisposable).
Members
new
fn new() -> Rc<Self>
disposable
fn disposable(self: &Self) -> Option<Rc<dyn IDisposable>>
The assigned disposable, if any.
set_disposable
fn set_disposable(self: &Self, value: Option<Rc<dyn IDisposable>>)
Assigns the underlying disposable. Panics when one was assigned already; a disposable assigned after this one was disposed is disposed at once.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyDefaultIDisposableICancelable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.