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
sourceimpl 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
sourceimpl Clone for RTCRtpTransceiverDirection
impl Clone for RTCRtpTransceiverDirection
sourcefn clone(&self) -> RTCRtpTransceiverDirection
fn clone(&self) -> RTCRtpTransceiverDirection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RTCRtpTransceiverDirection
impl Debug for RTCRtpTransceiverDirection
sourceimpl Display for RTCRtpTransceiverDirection
impl Display for RTCRtpTransceiverDirection
sourceimpl 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.
sourceimpl From<u8> for RTCRtpTransceiverDirection
impl From<u8> for RTCRtpTransceiverDirection
sourceimpl PartialEq<RTCRtpTransceiverDirection> for RTCRtpTransceiverDirection
impl PartialEq<RTCRtpTransceiverDirection> for RTCRtpTransceiverDirection
sourcefn eq(&self, other: &RTCRtpTransceiverDirection) -> bool
fn eq(&self, other: &RTCRtpTransceiverDirection) -> bool
impl Copy for RTCRtpTransceiverDirection
impl Eq for RTCRtpTransceiverDirection
impl StructuralEq for RTCRtpTransceiverDirection
impl StructuralPartialEq for RTCRtpTransceiverDirection
Auto Trait Implementations
impl RefUnwindSafe for RTCRtpTransceiverDirection
impl Send for RTCRtpTransceiverDirection
impl Sync for RTCRtpTransceiverDirection
impl Unpin for RTCRtpTransceiverDirection
impl UnwindSafe for RTCRtpTransceiverDirection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more