#[non_exhaustive]pub enum ServerPacket {
ConnectAck {
callsign: Callsign,
reflector_module: Module,
},
ConnectNak {
callsign: Callsign,
reflector_module: Module,
},
PollEcho {
callsign: Callsign,
reflector_callsign: Callsign,
},
Voice {
header: DStarHeader,
stream_id: StreamId,
seq: u8,
frame: VoiceFrame,
is_end: bool,
},
}Expand description
Packets a DCS 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 ACK reply to a LINK request.
ConnectNak
14-byte NAK reply to a LINK request.
PollEcho
17-byte keepalive poll echo.
Voice
100-byte voice frame forwarded to a connected client.
Fields
§
header: DStarHeaderDecoded D-STAR header embedded at bytes [4..43].
§
frame: VoiceFrameVoice frame (9 bytes AMBE + 3 bytes slow data).
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