Struct medea_jason::peer::LocalStreamUpdateCriteria[][src]

pub struct LocalStreamUpdateCriteria(_);

Criteria, used for local stream updates, allowing to specify a set of MediaKind + MediaSourceKind pairs.

Implementations

impl LocalStreamUpdateCriteria[src]

#[must_use]pub fn all() -> Self[src]

Creates LocalStreamUpdateCriteria with all possible MediaKind + MediaSourceKind combinations.

#[must_use]pub fn empty() -> Self[src]

#[must_use]pub fn from_kinds(
    media_kind: MediaKind,
    source_kind: Option<MediaSourceKind>
) -> Self
[src]

Creates LocalStreamUpdateCriteria with the provided MediaKind + MediaSourceKind pair.

None source_kind means both MediaSourceKinds.

#[must_use]pub fn from_tracks(tracks: &[Track]) -> Self[src]

Builds LocalStreamUpdateCriteria from the provided tracks. Only Direction::Send Tracks are taken into account.

pub fn add(&mut self, media_kind: MediaKind, source_kind: MediaSourceKind)[src]

Adds the given MediaKind + MediaSourceKind pair to this LocalStreamUpdateCriteria.

#[must_use]pub fn has(self, media_kind: MediaKind, source_kind: MediaSourceKind) -> bool[src]

Checks whether this LocalStreamUpdateCriteria contains the provided MediaKind + MediaSourceKind pair.

Trait Implementations

impl Clone for LocalStreamUpdateCriteria[src]

impl Copy for LocalStreamUpdateCriteria[src]

impl Debug for LocalStreamUpdateCriteria[src]

impl Eq for LocalStreamUpdateCriteria[src]

impl PartialEq<LocalStreamUpdateCriteria> for LocalStreamUpdateCriteria[src]

impl StructuralEq for LocalStreamUpdateCriteria[src]

impl StructuralPartialEq for LocalStreamUpdateCriteria[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> 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.

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