Trait medea_jason::utils::component::SynchronizableState
source · 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§
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_cons: &LocalTracksConstraints) -> Self
fn from_proto(input: Self::Input, send_cons: &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
.