pub struct RxState;Expand description
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).
Implementations§
Source§impl RxState
impl RxState
Sourcepub fn default_exception_handler() -> Rc<dyn IObserver<ObservableError>>
pub 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
UnhandledErrorException that names the error, where upstream throws that exception.
Sourcepub fn initialize_exception_handler(
exception_handler: Rc<dyn IObserver<ObservableError>>,
)
pub 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.