pub struct Packet {
pub header: Header,
pub payload: Bytes,
}
Expand description
Packet represents an RTP Packet NOTE: Raw is populated by Marshal/Unmarshal and should not be modified
Fields§
§header: Header
§payload: Bytes
Trait Implementations§
source§impl MarshalSize for Packet
impl MarshalSize for Packet
source§fn marshal_size(&self) -> usize
fn marshal_size(&self) -> usize
MarshalSize returns the size of the packet once marshaled.
source§impl PartialEq for Packet
impl PartialEq for Packet
impl Eq for Packet
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnwindSafe for Packet
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