BindingErrors
struct · ferroui-reactiveui · v0.5.0
struct BindingErrors
How a binding reacts when the sequence feeding its write faults (BindingErrors).
A faulted write has no caller stack to surface on: it arrives wherever the change notification
was raised. Every fault is logged against the bound expression. A fault that carries an inner
error (its source), a setter that failed, becomes a
TargetInvocationError where upstream throws it, and goes where that exception would end:
the ThrownExceptions of the reactive object whose change notification is running, or else
RxState::default_exception_handler, which an application replaces
(RxState::initialize_exception_handler) and which by default raises it on the main thread.
No panic is raised here (#567), so the binding behaves the same with panic = "abort". A fault with none is the sequence itself ending in
error, and is only logged. Completion is ignored.
Members
subscribe
fn subscribe<T: 'static>(source: Rc<dyn IObservable<T>>, on_next: impl Fn(T) -> () + 'static, binding_expression: impl Into<String>) -> Rc<dyn IDisposable>
Subscribes the write on_next of a binding to source, applying the fault contract;
binding_expression names the bound expression in the log entry and the raised error
(Subscribe<T>(IObservable<T>, Action<T>, string)).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>Any
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.