Struct medea_jason::peer::receiver::State [−][src]
State of the Component
.
Implementations
impl State
[src]
#[must_use]pub fn new(
id: TrackId,
mid: Option<String>,
media_type: MediaType,
sender: MemberId
) -> Self
[src]
id: TrackId,
mid: Option<String>,
media_type: MediaType,
sender: MemberId
) -> Self
Returns State
with a provided data.
#[must_use]pub fn id(&self) -> TrackId
[src]
#[must_use]pub fn mid(&self) -> Option<&str>
[src]
Returns current mid
of this State
.
#[must_use]pub fn media_type(&self) -> &MediaType
[src]
#[must_use]pub fn sender_id(&self) -> &MemberId
[src]
#[must_use]pub fn enabled_individual(&self) -> bool
[src]
Returns current individual media exchange state of this State
.
#[must_use]pub fn enabled_general(&self) -> bool
[src]
Returns current general media exchange state of this State
.
#[must_use]pub fn muted(&self) -> bool
[src]
Returns current mute state of this State
.
pub fn update(&self, track_patch: &TrackPatchEvent)
[src]
Updates this State
with the provided TrackPatchEvent
.
Trait Implementations
impl AsProtoState for State
[src]
type Output = Receiver
medea_client_api_proto::state
into which this state can be
transformed. Read more
fn as_proto(&self) -> Self::Output
[src]
impl Debug for State
[src]
impl MediaStateControllable for State
[src]
fn media_exchange_state_controller(&self) -> Rc<MediaExchangeStateController>
[src]
fn mute_state_controller(&self) -> Rc<MuteStateController>
[src]
#[must_use]fn media_exchange_state(&self) -> MediaExchangeState
[src]
#[must_use]fn mute_state(&self) -> MuteState
[src]
fn media_state_transition_to(
&self,
desired_state: MediaState
) -> Result<(), Traced<MediaConnectionsError>>
[src]
&self,
desired_state: MediaState
) -> Result<(), Traced<MediaConnectionsError>>
#[must_use]fn is_subscription_needed(&self, desired_state: MediaState) -> bool
[src]
#[must_use]fn is_track_patch_needed(&self, desired_state: MediaState) -> bool
[src]
fn when_media_state_stable(
&self,
desired_state: MediaState
) -> LocalBoxFuture<'static, Result<(), Traced<MediaConnectionsError>>>
[src]
&self,
desired_state: MediaState
) -> LocalBoxFuture<'static, Result<(), Traced<MediaConnectionsError>>>
impl SynchronizableState for State
[src]
type Input = Receiver
medea_client_api_proto::state
by which this state can be updated.
fn from_proto(input: Self::Input, _: &LocalTracksConstraints) -> Self
[src]
fn apply(&self, input: Self::Input, _: &LocalTracksConstraints)
[src]
impl TransceiverSide for State
[src]
fn track_id(&self) -> TrackId
[src]
fn kind(&self) -> MediaKind
[src]
fn source_kind(&self) -> MediaSourceKind
[src]
fn is_transitable(&self) -> bool
[src]
impl Updatable for State
[src]
fn when_stabilized(&self) -> AllProcessed<'static>
[src]
Returns Future
resolving once media_exchange_state
is
stabilized.
fn when_updated(&self) -> AllProcessed<'static>
[src]
fn connection_lost(&self)
[src]
Notifies State
about a RPC connection loss.
fn connection_recovered(&self)
[src]
Notifies State
about a RPC connection restore.
Auto Trait Implementations
impl !RefUnwindSafe for State
impl !Send for State
impl !Sync for State
impl Unpin for State
impl !UnwindSafe for State
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.