pub struct ToneSender {
pub packet_duration: u16,
}Expand description
Cuts a tone into packets, without redundancy (RFC 4733 section 4.4.1): “The RTP timestamp MUST be updated for
each packet generated … the RTP timestamp in each subsequent packet MUST equal the sum of
the timestamp and the duration in the preceding packet”; the first packet has the marker
set and the rest not (section 4.3.2). RedundantToneSender adds the RFC 2198
combination the same section asks for.
Fields§
§packet_duration: u16The duration of one packet in timestamp units.
Implementations§
Trait Implementations§
Source§impl Clone for ToneSender
impl Clone for ToneSender
impl Copy for ToneSender
Auto Trait Implementations§
impl Forget for ToneSender
impl Freeze for ToneSender
impl Move for ToneSender
impl RefUnwindSafe for ToneSender
impl Send for ToneSender
impl Sync for ToneSender
impl Unpin for ToneSender
impl UnsafeUnpin for ToneSender
impl UnwindSafe for ToneSender
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