pub enum MediaDirection {
SendRecv,
SendOnly,
RecvOnly,
Inactive,
}Expand description
Media exchange direction of a Track.
Variants§
SendRecv
Track is enabled on both receiver and sender sides.
SendOnly
Track is enabled on sender side only.
RecvOnly
Track is enabled on receiver side only.
Inactive
Track is disabled on both sides.
Implementations§
source§impl MediaDirection
impl MediaDirection
sourcepub const fn is_send_enabled(self) -> bool
pub const fn is_send_enabled(self) -> bool
Indicates whether a Track is enabled on sender side only.
sourcepub const fn is_recv_enabled(self) -> bool
pub const fn is_recv_enabled(self) -> bool
Indicates whether a Track is enabled on receiver side only.
sourcepub const fn is_enabled_general(self) -> bool
pub const fn is_enabled_general(self) -> bool
Indicates whether a Track is enabled on both sender and receiver
sides.
Trait Implementations§
source§impl Clone for MediaDirection
impl Clone for MediaDirection
source§fn clone(&self) -> MediaDirection
fn clone(&self) -> MediaDirection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MediaDirection
impl Debug for MediaDirection
source§impl<'de> Deserialize<'de> for MediaDirection
impl<'de> Deserialize<'de> for MediaDirection
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<MediaDirection> for MediaDirection
impl PartialEq<MediaDirection> for MediaDirection
source§fn eq(&self, other: &MediaDirection) -> bool
fn eq(&self, other: &MediaDirection) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MediaDirection
impl Serialize for MediaDirection
impl Copy for MediaDirection
impl Eq for MediaDirection
impl StructuralEq for MediaDirection
impl StructuralPartialEq for MediaDirection
Auto Trait Implementations§
impl RefUnwindSafe for MediaDirection
impl Send for MediaDirection
impl Sync for MediaDirection
impl Unpin for MediaDirection
impl UnwindSafe for MediaDirection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more