pub enum Packet {
Show 14 variants
VersionQuery,
FramesOutstandingPortQuery(Port),
FramesOutstandingPortReply(Port, usize),
VersionReply {
major: u16,
minor: u16,
},
PortCapQuery(Port),
PortInfoQuery,
RegisterCallsign(Port, Pid, Call),
Connect {
port: Port,
pid: Pid,
src: Call,
dst: Call,
},
ConnectVia {
port: Port,
pid: Pid,
src: Call,
dst: Call,
via: Vec<Call>,
},
IncomingConnect {
port: Port,
pid: Pid,
src: Call,
dst: Call,
},
ConnectionEstablished {
port: Port,
pid: Pid,
src: Call,
dst: Call,
},
Disconnect {
port: Port,
pid: Pid,
src: Call,
dst: Call,
},
Unproto {
port: Port,
pid: Pid,
src: Call,
dst: Call,
data: Vec<u8>,
},
Data {
port: Port,
pid: Pid,
src: Call,
dst: Call,
data: Vec<u8>,
},
}Variants§
VersionQuery
Application: Version query.
FramesOutstandingPortQuery(Port)
Application: Ask outstanding frames.
FramesOutstandingPortReply(Port, usize)
AGWPE: Outstanding frame count report.
VersionReply
AGWPE: Version reply.
PortCapQuery(Port)
Application: Port capability query.
PortInfoQuery
Application: Port info query.
RegisterCallsign(Port, Pid, Call)
Connect
ConnectVia
IncomingConnect
ConnectionEstablished
Disconnect
Unproto
Data
Implementations§
Trait Implementations§
impl StructuralPartialEq for Packet
Auto Trait Implementations§
impl Freeze for Packet
impl RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl UnsafeUnpin for Packet
impl UnwindSafe for Packet
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