pub enum MediaDirection {
RecvOnly,
SendOnly,
}Available on crate features
ingest and webrtc only.Expand description
The direction the server’s media line takes in the answer: recvonly for
WHIP ingest (the server receives), sendonly for WHEP egress (it sends).
Variants§
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MediaDirection
Source§impl Debug for MediaDirection
impl Debug for MediaDirection
impl Eq for MediaDirection
Source§impl PartialEq for MediaDirection
impl PartialEq for MediaDirection
Source§fn eq(&self, other: &MediaDirection) -> bool
fn eq(&self, other: &MediaDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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