ObservableForPropertySink
struct · ferroui-reactiveui · v0.5.0
struct ObservableForPropertySink<T: 'static, V: 'static>
Produces the value of a property on subscription, unless skipped, and again on each
notification of a property observer (ObservableForPropertySink<TSender, TValue>).
The value is read with the getter on every notification; the value of the notification is not used. The errors and the completion of the notifications pass through.
Members
new
fn new(sender: &Rc<T>, expression: impl Into<String>, notifications: Rc<dyn IObservable<ObservedChange<PropertyOwner, ()>>>, read_value: impl Fn(&Rc<T>) -> V + 'static, skip_initial: bool, comparer: Option<ValueComparer<V>>) -> Self
The values of the property expression of sender, read with read_value on each of
notifications; comparer, when given, drops a value equal to the last one
(isDistinct).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnySubscribeGuard<T>IObservable<ObservedChange<Rc<T>, V>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.