pub enum MediaDirection {
SendRecv = 0,
SendOnly = 1,
RecvOnly = 2,
Inactive = 3,
}
Expand description
Media exchange direction of a Track
.
Variants§
SendRecv = 0
Track
is enabled on both receiver and sender sides.
SendOnly = 1
Track
is enabled on sender side only.
RecvOnly = 2
Track
is enabled on receiver side only.
Inactive = 3
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 duplicate 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 for MediaDirection
impl PartialEq for MediaDirection
Source§impl Serialize for MediaDirection
impl Serialize for MediaDirection
impl Copy for MediaDirection
impl Eq for MediaDirection
impl StructuralPartialEq for MediaDirection
Auto Trait Implementations§
impl Freeze for MediaDirection
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