pub enum VoiceEvent {
StreamStart {
header: DStarHeader,
stream_id: StreamId,
},
Frame {
stream_id: StreamId,
seq: u8,
frame: VoiceFrame,
},
StreamEnd {
stream_id: StreamId,
seq: u8,
},
}Expand description
A decoded voice event ready for cross-protocol fan-out.
The endpoint’s inbound path decodes a raw datagram and produces
one of these variants for each frame it wants to broadcast to
peers on other protocols. The same variant is re-encoded by
transcode_voice into each destination protocol’s wire format.
Variants§
StreamStart
Start of a stream. Requires the D-STAR header.
Frame
Middle-of-stream voice frame.
StreamEnd
End of stream.
Trait Implementations§
Source§impl Clone for VoiceEvent
impl Clone for VoiceEvent
Source§fn clone(&self) -> VoiceEvent
fn clone(&self) -> VoiceEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VoiceEvent
impl RefUnwindSafe for VoiceEvent
impl Send for VoiceEvent
impl Sync for VoiceEvent
impl Unpin for VoiceEvent
impl UnwindSafe for VoiceEvent
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