pub struct ByePacket { /* private fields */ }Expand description
BYE packet.
Implementations§
Source§impl ByePacket
impl ByePacket
Sourcepub fn new<T>(sources: T) -> Self
pub fn new<T>(sources: T) -> Self
Create a new BYE packet for given sources.
§Panics
The method panics if the number of sources is greater than 31.
Sourcepub fn decode(packet: &RtcpPacket) -> Result<Self, InvalidInput>
pub fn decode(packet: &RtcpPacket) -> Result<Self, InvalidInput>
Decode a BYE packet.
Sourcepub fn encode(&self) -> RtcpPacket
pub fn encode(&self) -> RtcpPacket
Encode the BYE packet.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ByePacket
impl RefUnwindSafe for ByePacket
impl Send for ByePacket
impl Sync for ByePacket
impl Unpin for ByePacket
impl UnwindSafe for ByePacket
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