pub struct TonePacket {
pub event: Event,
pub segment_offset: u32,
}Expand description
One packet of a keypress: the event payload, plus where its segment sits in the event’s timeline.
Fields§
§event: EventThe four-byte payload.
segment_offset: u32The segment’s start, in timestamp units after the event began.
Zero for any event short enough to fit one segment. RFC 4733 §2.5.1.3: an event that outlives the 16-bit duration field is continued as a new segment with a fresh RTP timestamp, and this offset is what that timestamp moves by.
Trait Implementations§
Source§impl Clone for TonePacket
impl Clone for TonePacket
Source§fn clone(&self) -> TonePacket
fn clone(&self) -> TonePacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TonePacket
impl Debug for TonePacket
Source§impl PartialEq for TonePacket
impl PartialEq for TonePacket
Source§fn eq(&self, other: &TonePacket) -> bool
fn eq(&self, other: &TonePacket) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TonePacket
impl Eq for TonePacket
impl StructuralPartialEq for TonePacket
Auto Trait Implementations§
impl Freeze 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