Struct medea_client_api_proto::TrackPatchEvent[][src]

pub struct TrackPatchEvent {
    pub id: TrackId,
    pub enabled_individual: Option<bool>,
    pub enabled_general: Option<bool>,
    pub muted: Option<bool>,
}

Patch of the Track which Media Server can send with Event::PeerUpdated.

Fields

id: TrackId

ID of the Track which should be patched.

enabled_individual: Option<bool>

Media exchange state of the concrete Member.

This state doesn’t indicates that connection between two Members are really disabled. This is intention of this Member.

enabled_general: Option<bool>

Media exchange state of the connection between Members.

This state indicates real media exchange state between Members. But this state doesn’t changes intention of this Member.

So intention of this Member (enabled_individual) can be false, but real media exchange state can be true.

muted: Option<bool>

Track mute state. Muting and unmuting can be performed without adding / removing tracks from transceivers, hence renegotiation is not required.

Implementations

impl TrackPatchEvent[src]

#[must_use]pub fn new(id: TrackId) -> Self[src]

Returns new empty TrackPatchEvent with a provided TrackId.

pub fn merge(&mut self, another: &Self)[src]

Merges this TrackPatchEvent with a provided TrackPatchEvent.

Does nothing if TrackId of this TrackPatchEvent and the provided TrackPatchEvent are different.

Trait Implementations

impl Clone for TrackPatchEvent[src]

impl Debug for TrackPatchEvent[src]

impl<'de> Deserialize<'de> for TrackPatchEvent[src]

impl Eq for TrackPatchEvent[src]

impl From<TrackPatchCommand> for TrackPatchEvent[src]

impl PartialEq<TrackPatchEvent> for TrackPatchEvent[src]

impl Serialize for TrackPatchEvent[src]

impl StructuralEq for TrackPatchEvent[src]

impl StructuralPartialEq for TrackPatchEvent[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.