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::media::receiver::State

source§

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

source§

impl Updatable for medea_jason::peer::State