#[non_exhaustive]pub enum ClientPacket {
Link {
callsign: Callsign,
reflector_module: Module,
client_module: Module,
},
Unlink {
callsign: Callsign,
client_module: Module,
},
Poll {
callsign: Callsign,
},
VoiceHeader {
stream_id: StreamId,
header: DStarHeader,
},
VoiceData {
stream_id: StreamId,
seq: u8,
frame: VoiceFrame,
},
VoiceEot {
stream_id: StreamId,
seq: u8,
},
}Expand description
Packets a DExtra client sends to a reflector.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Link
11-byte LINK request.
Fields
Unlink
11-byte UNLINK request: same shape but reflector module is space.
Fields
Poll
9-byte keepalive poll.
VoiceHeader
56-byte voice header (DSVT framed, no DPlus prefix).
VoiceData
27-byte voice data (DSVT framed).
Fields
§
frame: VoiceFrame9 AMBE bytes + 3 slow data bytes.
VoiceEot
27-byte voice EOT (DSVT framed, seq has 0x40 bit).
Trait Implementations§
Source§impl Clone for ClientPacket
impl Clone for ClientPacket
Source§fn clone(&self) -> ClientPacket
fn clone(&self) -> ClientPacket
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 moreSource§impl Debug for ClientPacket
impl Debug for ClientPacket
Source§impl PartialEq for ClientPacket
impl PartialEq for ClientPacket
impl Eq for ClientPacket
impl StructuralPartialEq for ClientPacket
Auto Trait Implementations§
impl Freeze for ClientPacket
impl RefUnwindSafe for ClientPacket
impl Send for ClientPacket
impl Sync for ClientPacket
impl Unpin for ClientPacket
impl UnwindSafe for ClientPacket
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