FerroPropertySignal
struct · ferroui-reactiveui-controls · v0.5.0
struct FerroPropertySignal<T>
A property of a FerroUI object as a signal: an observer whose values on_next handles, and the
observable of the property (FerroPropertySignal<T>).
It counts its observers (has_observers); it is disposed by its
completion, by an error or by dispose, after which the values pushed
into it are dropped.
Members
new
fn new(on_next: impl Fn(T) -> () + 'static, observable: Rc<dyn IObservable<T>>) -> Rc<Self>
The signal that hands the values pushed into it to on_next and whose observers subscribe
to observable (FerroPropertySignal<T>(Action<T>, IObservable<T>)).
is_disposed
fn is_disposed(self: &Self) -> bool
Whether the signal has been disposed (IsDisposed).
has_observers
fn has_observers(self: &Self) -> bool
Whether observers are subscribed (HasObservers).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsSubscribeGuard<T>ErasedDestructorIntoEitherISubjectHandle<A, B>ISubject<A, B>DebugIObserver<T>IObservable<T>IDisposable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.