pub struct TonePacket {
pub timestamp: u32,
pub marker: bool,
pub payload: Bytes,
}Expand description
One packet of a tone: its RTP timestamp, marker bit and payload.
Fields§
§timestamp: u32The RTP timestamp.
marker: boolThe marker bit: set on the first packet of a tone.
payload: BytesThe payload.
Trait Implementations§
Source§impl Clone for TonePacket
impl Clone for TonePacket
Source§impl Debug for TonePacket
impl Debug for TonePacket
impl Eq for TonePacket
Source§impl PartialEq for TonePacket
impl PartialEq for TonePacket
impl StructuralPartialEq for TonePacket
Auto Trait Implementations§
impl !Freeze for TonePacket
impl Forget for TonePacket
impl Move for TonePacket
impl RefUnwindSafe for TonePacket
impl Send for TonePacket
impl Sync for TonePacket
impl Unpin for TonePacket
impl UnsafeUnpin for TonePacket
impl UnwindSafe for TonePacket
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