pub trait SynchronizableState {
    type Input;

    // Required methods
    fn from_proto(
        input: Self::Input,
        send_cons: &LocalTracksConstraints
    ) -> Self;
    fn apply(&self, input: Self::Input, send_cons: &LocalTracksConstraints);
}
Expand description

Abstraction of state which can be updated or created by the medea_client_api_proto::state.

Required Associated Types§

source

type Input

medea_client_api_proto::state by which this state can be updated.

Required Methods§

source

fn from_proto(input: Self::Input, send_cons: &LocalTracksConstraints) -> Self

Creates a new state from the medea_client_api_proto::state representation.

source

fn apply(&self, input: Self::Input, send_cons: &LocalTracksConstraints)

Updates this state with a provided medea_client_api_proto::state.

Implementors§

source§

impl SynchronizableState for medea_jason::peer::media::receiver::State

source§

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

source§

impl SynchronizableState for medea_jason::peer::State

§

type Input = Peer