#[non_exhaustive]pub enum PauseResumeControl {
LocalPause(u32),
LocalResume(u32),
}Expand description
What the peer connection tells the PauseResumeInterceptor while it runs: a local
stream it sends made inactive or active again (W3C webrtc-pc RTCRtpEncodingParameters
active), which RFC 8853 section 5.2 has treated as an RFC 7728 local pause (section 6.4,
announced with PAUSED) and resume. A stream that did not negotiate pause and resume is
not affected.
It travels as an Attribute::Custom on an empty RTCP packet written into the chain
(PauseResumeControl::into_packet), which the interceptor hands on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LocalPause(u32)
The local stream of this SSRC is paused by local decision.
LocalResume(u32)
The local stream of this SSRC, paused by local decision, plays again.
Implementations§
Source§impl PauseResumeControl
impl PauseResumeControl
Sourcepub fn into_packet(self, now: Instant) -> TaggedPacket
pub fn into_packet(self, now: Instant) -> TaggedPacket
The packet that carries this to the pause-resume interceptor when written into the
chain at now.
Trait Implementations§
Source§impl Clone for PauseResumeControl
impl Clone for PauseResumeControl
impl Copy for PauseResumeControl
Source§impl Debug for PauseResumeControl
impl Debug for PauseResumeControl
impl Eq for PauseResumeControl
Source§impl PartialEq for PauseResumeControl
impl PartialEq for PauseResumeControl
impl StructuralPartialEq for PauseResumeControl
Auto Trait Implementations§
impl Forget for PauseResumeControl
impl Freeze for PauseResumeControl
impl Move for PauseResumeControl
impl RefUnwindSafe for PauseResumeControl
impl Send for PauseResumeControl
impl Sync for PauseResumeControl
impl Unpin for PauseResumeControl
impl UnsafeUnpin for PauseResumeControl
impl UnwindSafe for PauseResumeControl
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