pub enum RTCRtpTransceiverDirection {
Unspecified,
Sendrecv,
Sendonly,
Recvonly,
Inactive,
}Expand description
Direction of media flow for an RTP transceiver.
Indicates whether the transceiver will send and/or receive RTP media.
§Specification
See RTCRtpTransceiverDirection in the W3C WebRTC specification.
§MDN
Variants§
Unspecified
Direction is not specified (internal use only).
Sendrecv
Transceiver will both send and receive RTP media.
The RTP sender will offer to send RTP and the RTP receiver will offer to receive RTP.
Sendonly
Transceiver will only send RTP media.
The RTP sender will offer to send RTP.
Recvonly
Transceiver will only receive RTP media.
The RTP receiver will offer to receive RTP.
Inactive
Transceiver will neither send nor receive RTP media.
Neither the RTP sender nor receiver will be active.
Implementations§
Source§impl RTCRtpTransceiverDirection
impl RTCRtpTransceiverDirection
Sourcepub fn reverse(&self) -> RTCRtpTransceiverDirection
pub fn reverse(&self) -> RTCRtpTransceiverDirection
Returns the opposite direction.
Swaps send-only with receive-only. Sendrecv and Inactive remain unchanged.
Sourcepub fn intersect(
&self,
other: RTCRtpTransceiverDirection,
) -> RTCRtpTransceiverDirection
pub fn intersect( &self, other: RTCRtpTransceiverDirection, ) -> RTCRtpTransceiverDirection
Returns the intersection of two directions.
The resulting direction will only send if both directions can send, and will only receive if both directions can receive.
Sourcepub fn from_send_recv(send: bool, recv: bool) -> RTCRtpTransceiverDirection
pub fn from_send_recv(send: bool, recv: bool) -> RTCRtpTransceiverDirection
Creates a direction from separate send and receive capabilities.
Trait Implementations§
Source§impl Clone for RTCRtpTransceiverDirection
impl Clone for RTCRtpTransceiverDirection
Source§fn clone(&self) -> RTCRtpTransceiverDirection
fn clone(&self) -> RTCRtpTransceiverDirection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RTCRtpTransceiverDirection
Source§impl Debug for RTCRtpTransceiverDirection
impl Debug for RTCRtpTransceiverDirection
Source§impl Default for RTCRtpTransceiverDirection
impl Default for RTCRtpTransceiverDirection
Source§fn default() -> RTCRtpTransceiverDirection
fn default() -> RTCRtpTransceiverDirection
Source§impl Display for RTCRtpTransceiverDirection
impl Display for RTCRtpTransceiverDirection
impl Eq for RTCRtpTransceiverDirection
Source§impl From<&str> for RTCRtpTransceiverDirection
defines a procedure for creating a new
RTPTransceiverDirection from a raw string naming the transceiver direction.
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
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 UnsafeUnpin for RTCRtpTransceiverDirection
impl UnwindSafe for RTCRtpTransceiverDirection
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.