Trait ObserverState

Source
pub trait ObserverState: Send + 'static {
    // Required methods
    fn subscribe_type() -> SubscribeType;
    fn handle_notification(&mut self, resp: SubscribeResponse);
    fn handle_initialization_notification(&mut self, resp: SubscribeResponse);
}

Required Methods§

Source

fn subscribe_type() -> SubscribeType

Source

fn handle_notification(&mut self, resp: SubscribeResponse)

modify data after receiving notification from meta

Source

fn handle_initialization_notification(&mut self, resp: SubscribeResponse)

Initialize data from the meta. It will be called at start or resubscribe

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§