SynchronizableState

Trait SynchronizableState 

Source
pub trait SynchronizableState {
    type Input;

    // Required methods
    fn from_proto(
        input: Self::Input,
        send_constraints: &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_constraints: &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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Source§

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

Source§

impl SynchronizableState for medea_jason::peer::State