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§
fn subscribe_type() -> SubscribeType
sourcefn handle_notification(&mut self, resp: SubscribeResponse)
fn handle_notification(&mut self, resp: SubscribeResponse)
modify data after receiving notification from meta
sourcefn handle_initialization_notification(&mut self, resp: SubscribeResponse)
fn handle_initialization_notification(&mut self, resp: SubscribeResponse)
Initialize data from the meta. It will be called at start or resubscribe
Object Safety§
This trait is not object safe.