Updatable

Trait 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§

Source

fn when_stabilized(&self) -> AllProcessed<'static>

Returns Future resolving once this Updatable state resolves its intentions.

Source

fn when_updated(&self) -> AllProcessed<'static>

Returns Future resolving once all the client updates are performed on this state.

Source

fn connection_lost(&self)

Notifies about a RPC connection loss.

Source

fn connection_recovered(&self)

Notifies about a RPC connection recovering.

Implementors§

Source§

impl Updatable for medea_jason::peer::receiver::State

Source§

impl Updatable for medea_jason::peer::sender::State

Source§

impl Updatable for medea_jason::peer::State