SerialDisposableValue
struct · ferroui-reactive · v0.5.0
struct SerialDisposableValue
A slot whose disposable can be replaced, disposing the previous one (SerialDisposableValue).
A disposable assigned after the slot was disposed is disposed at once.
Members
new
const fn new() -> Self
is_disposed
fn is_disposed(self: &Self) -> bool
disposable
fn disposable(self: &Self) -> Option<Rc<dyn IDisposable>>
The current disposable, if any.
set_disposable
fn set_disposable(self: &Self, value: Option<Rc<dyn IDisposable>>)
Replaces the disposable and disposes the previous one.
try_set_first
fn try_set_first(self: &Self, value: Rc<dyn IDisposable>) -> bool
Assigns the first disposable; false when one was assigned already (TrySetFirst).
dispose
fn dispose(self: &Self)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.