pub struct Event {
pub digit: Digit,
pub end: bool,
pub volume: u8,
pub duration: u16,
}Expand description
One telephone-event payload.
Fields§
§digit: DigitWhich digit.
end: boolWhether this packet ends the tone.
volume: u8Power, in -dBm0. Zero is loudest; RFC 4733 §2.3.2 recommends no louder than -3.
duration: u16How long the tone has lasted so far, in timestamp units.
Implementations§
Trait Implementations§
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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