RxState
struct · ferroui-reactiveui · v0.5.0
struct RxState
The state of ReactiveUI that its objects share (RxState): the handler of the errors that no
thrown_exceptions subscriber handles.
Deviation (DEVIATIONS.md, ReactiveUI): the state is per thread, as the objects that use it are
(docs/porting/reactive.md, section 5.1).
Members
default_exception_handler
fn default_exception_handler() -> Rc<dyn IObserver<ObservableError>>
The observer that receives the errors of the objects implementing
IHandleObservableErrors when nothing subscribes to
their thrown_exceptions (DefaultExceptionHandler).
Unless initialize_exception_handler set another
one first, it schedules on RxSchedulers::main_thread_scheduler a panic with an
UnhandledError that names the error, where upstream throws that exception.
initialize_exception_handler
fn initialize_exception_handler(exception_handler: Rc<dyn IObserver<ObservableError>>)
Sets the handler of default_exception_handler unless
one was set or read before (InitializeExceptionHandler); the builder of the application
calls it.
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.