Trait medea_jason::utils::component::Updatable
source · pub trait Updatable {
// Required methods
fn when_stabilized(&self) -> AllProcessed<'static>;
fn when_updated(&self) -> AllProcessed<'static>;
fn connection_lost(&self);
fn connection_recovered(&self);
}
Expand description
Abstraction over a state which can be updated by a client side.
Required Methods§
sourcefn when_stabilized(&self) -> AllProcessed<'static>
fn when_stabilized(&self) -> AllProcessed<'static>
sourcefn when_updated(&self) -> AllProcessed<'static>
fn when_updated(&self) -> AllProcessed<'static>
Returns Future
resolving once all the client updates are performed
on this state.
sourcefn connection_lost(&self)
fn connection_lost(&self)
Notifies about a RPC connection loss.
sourcefn connection_recovered(&self)
fn connection_recovered(&self)
Notifies about a RPC connection recovering.