pub enum RTCRtpTransceiverDirection {
Unspecified,
Sendrecv,
Sendonly,
Recvonly,
Inactive,
}
Expand description
RTPTransceiverDirection indicates the direction of the RTPTransceiver.
Variants§
Unspecified
Sendrecv
Sendrecv indicates the RTPSender will offer to send RTP and RTPReceiver the will offer to receive RTP.
Sendonly
Sendonly indicates the RTPSender will offer to send RTP.
Recvonly
Recvonly indicates the RTPReceiver the will offer to receive RTP.
Inactive
Inactive indicates the RTPSender won’t offer to send RTP and RTPReceiver the won’t offer to receive RTP.
Implementations§
source§impl RTCRtpTransceiverDirection
impl RTCRtpTransceiverDirection
sourcepub fn reverse(&self) -> RTCRtpTransceiverDirection
pub fn reverse(&self) -> RTCRtpTransceiverDirection
reverse indicate the opposite direction
pub fn intersect( &self, other: RTCRtpTransceiverDirection ) -> RTCRtpTransceiverDirection
pub fn from_send_recv(send: bool, recv: bool) -> RTCRtpTransceiverDirection
pub fn has_send(&self) -> bool
pub fn has_recv(&self) -> bool
Trait Implementations§
source§impl Clone for RTCRtpTransceiverDirection
impl Clone for RTCRtpTransceiverDirection
source§fn clone(&self) -> RTCRtpTransceiverDirection
fn clone(&self) -> RTCRtpTransceiverDirection
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 RTCRtpTransceiverDirection
impl Debug for RTCRtpTransceiverDirection
source§impl Display for RTCRtpTransceiverDirection
impl Display for RTCRtpTransceiverDirection
source§impl From<&str> for RTCRtpTransceiverDirection
impl From<&str> for RTCRtpTransceiverDirection
defines a procedure for creating a new RTPTransceiverDirection from a raw string naming the transceiver direction.
source§impl From<u8> for RTCRtpTransceiverDirection
impl From<u8> for RTCRtpTransceiverDirection
source§impl PartialEq for RTCRtpTransceiverDirection
impl PartialEq for RTCRtpTransceiverDirection
source§fn eq(&self, other: &RTCRtpTransceiverDirection) -> bool
fn eq(&self, other: &RTCRtpTransceiverDirection) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RTCRtpTransceiverDirection
impl Eq for RTCRtpTransceiverDirection
impl StructuralPartialEq for RTCRtpTransceiverDirection
Auto Trait Implementations§
impl Freeze for RTCRtpTransceiverDirection
impl RefUnwindSafe for RTCRtpTransceiverDirection
impl Send for RTCRtpTransceiverDirection
impl Sync for RTCRtpTransceiverDirection
impl Unpin for RTCRtpTransceiverDirection
impl UnwindSafe for RTCRtpTransceiverDirection
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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