Struct medea_jason::peer::receiver::State[][src]

pub struct State { /* fields omitted */ }

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]

Returns State with a provided data.

#[must_use]pub fn id(&self) -> TrackId[src]

Returns TrackId of this State.

#[must_use]pub fn mid(&self) -> Option<&str>[src]

Returns current mid of this State.

#[must_use]pub fn media_type(&self) -> &MediaType[src]

Returns current MediaType of this State.

#[must_use]pub fn sender_id(&self) -> &MemberId[src]

Returns current MemberId of the Member from which this State should receive media data.

#[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

impl Debug for State[src]

impl MediaStateControllable for State[src]

impl SynchronizableState for State[src]

type Input = Receiver

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

impl TransceiverSide for State[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]

Returns Future resolving once State update will be applied onto the Receiver.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<E> WrapTraced<E> for E[src]