#[non_exhaustive]pub enum ServerPacket {
ConnectAck {
callsign: Callsign,
reflector_module: Module,
},
ConnectNak {
callsign: Callsign,
reflector_module: Module,
},
PollEcho {
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 reflector sends to a client.
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.
ConnectAck
14-byte connect ACK: echoed callsign + module at [0..10],
b"ACK" at [10..13], NUL at [13].
ConnectNak
14-byte connect NAK: echoed callsign + module at [0..10],
b"NAK" at [10..13], NUL at [13].
PollEcho
9-byte poll echo.
VoiceHeader
56-byte voice header.
VoiceData
27-byte voice data.
Fields
§
frame: VoiceFrameVoice frame.
VoiceEot
27-byte voice EOT.
Trait Implementations§
Source§impl Clone for ServerPacket
impl Clone for ServerPacket
Source§fn clone(&self) -> ServerPacket
fn clone(&self) -> ServerPacket
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 ServerPacket
impl Debug for ServerPacket
Source§impl PartialEq for ServerPacket
impl PartialEq for ServerPacket
impl Eq for ServerPacket
impl StructuralPartialEq for ServerPacket
Auto Trait Implementations§
impl Freeze for ServerPacket
impl RefUnwindSafe for ServerPacket
impl Send for ServerPacket
impl Sync for ServerPacket
impl Unpin for ServerPacket
impl UnwindSafe for ServerPacket
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