pub struct RawPacket(pub Bytes);Expand description
RawPacket represents an unparsed RTCP packet. It’s returned by Unmarshal when a packet with an unknown type is encountered.
Tuple Fields§
§0: BytesTrait Implementations§
impl Eq for RawPacket
Source§impl MarshalSize for RawPacket
impl MarshalSize for RawPacket
Source§fn marshal_size(&self) -> usize
fn marshal_size(&self) -> usize
The number of bytes
Marshal::marshal_to will write for this value.Source§impl Packet for RawPacket
impl Packet for RawPacket
Source§fn destination_ssrc(&self) -> Vec<u32>
fn destination_ssrc(&self) -> Vec<u32>
destination_ssrc returns an array of SSRC values that this packet refers to.
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Downcasting hook, so a caller holding
Box<dyn Packet> can recover the concrete type.impl StructuralPartialEq for RawPacket
Auto Trait Implementations§
impl !Freeze for RawPacket
impl RefUnwindSafe for RawPacket
impl Send for RawPacket
impl Sync for RawPacket
impl Unpin for RawPacket
impl UnsafeUnpin for RawPacket
impl UnwindSafe for RawPacket
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