Struct medea_jason::peer::LocalStreamUpdateCriteria [−][src]
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]
Creates empty LocalStreamUpdateCriteria
.
#[must_use]pub fn from_kinds(
media_kind: MediaKind,
source_kind: Option<MediaSourceKind>
) -> Self
[src]
media_kind: MediaKind,
source_kind: Option<MediaSourceKind>
) -> Self
Creates LocalStreamUpdateCriteria
with the provided MediaKind
+
MediaSourceKind
pair.
None
source_kind
means both
MediaSourceKind
s.
#[must_use]pub fn from_tracks(tracks: &[Track]) -> Self
[src]
Builds LocalStreamUpdateCriteria
from the provided tracks
. Only
Direction::Send
Track
s 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]
fn clone(&self) -> LocalStreamUpdateCriteria
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LocalStreamUpdateCriteria
[src]
impl Debug for LocalStreamUpdateCriteria
[src]
impl Eq for LocalStreamUpdateCriteria
[src]
impl PartialEq<LocalStreamUpdateCriteria> for LocalStreamUpdateCriteria
[src]
fn eq(&self, other: &LocalStreamUpdateCriteria) -> bool
[src]
fn ne(&self, other: &LocalStreamUpdateCriteria) -> bool
[src]
impl StructuralEq for LocalStreamUpdateCriteria
[src]
impl StructuralPartialEq for LocalStreamUpdateCriteria
[src]
Auto Trait Implementations
impl RefUnwindSafe for LocalStreamUpdateCriteria
impl Send for LocalStreamUpdateCriteria
impl Sync for LocalStreamUpdateCriteria
impl Unpin for LocalStreamUpdateCriteria
impl UnwindSafe for LocalStreamUpdateCriteria
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.