pub enum RtcpMode {
Separate,
Mux,
}Expand description
Whether one media section uses a separate RTCP port or multiplexes it with RTP (RFC 5761).
Variants§
Separate
RTP uses the media port and RTCP uses its control port.
Mux
RTP and RTCP share the media port.
Implementations§
Source§impl RtcpMode
impl RtcpMode
Sourcepub fn from_exchange(
offer: &MediaDescription,
answer: &MediaDescription,
) -> Self
pub fn from_exchange( offer: &MediaDescription, answer: &MediaDescription, ) -> Self
Settle an offer/answer exchange.
RFC 5761 §5.1.3: mux is active only when the offer and the answer both carry the flag. Omission in the answer is the separate-port fallback and needs no second exchange.
Trait Implementations§
impl Copy for RtcpMode
impl Eq for RtcpMode
impl StructuralPartialEq for RtcpMode
Auto Trait Implementations§
impl Freeze for RtcpMode
impl RefUnwindSafe for RtcpMode
impl Send for RtcpMode
impl Sync for RtcpMode
impl Unpin for RtcpMode
impl UnsafeUnpin for RtcpMode
impl UnwindSafe for RtcpMode
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