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§
Sourcetype Input
type Input
medea_client_api_proto::state by which this state can be updated.
Required Methods§
Sourcefn from_proto(
input: Self::Input,
send_constraints: &LocalTracksConstraints,
) -> Self
fn from_proto( input: Self::Input, send_constraints: &LocalTracksConstraints, ) -> Self
Creates a new state from the medea_client_api_proto::state
representation.
Sourcefn apply(&self, input: Self::Input, send_cons: &LocalTracksConstraints)
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.