Enum Ax25Error
pub enum Ax25Error {
PacketTooShort,
InvalidAddressLength,
MissingControlFields,
TooManyDigipeaters,
InvalidCallsignByte(u8),
UnknownPid(u8),
InvalidCallsign(String),
InvalidSsid(u8),
}Expand description
Errors produced by AX.25 frame encode/decode and address construction.
Variants§
PacketTooShort
Packet is too short to contain required AX.25 fields.
InvalidAddressLength
Address field has invalid length (must be multiple of 7).
MissingControlFields
Control/protocol fields are missing after the address block.
TooManyDigipeaters
Packet carries more than 8 digipeater addresses (the AX.25 v2.2 §2.2.13 maximum).
InvalidCallsignByte(u8)
A callsign byte decoded to something other than an ASCII alphanumeric character or space padding.
UnknownPid(u8)
The protocol identifier (PID) byte is unknown or unsupported.
InvalidCallsign(String)
Callsign is outside the 1-6 ASCII uppercase/digit range per AX.25 v2.2 §3.2.
InvalidSsid(u8)
SSID is outside the 0-15 range per AX.25 v2.2 §3.2.
Trait Implementations§
§impl Error for Ax25Error
impl Error for Ax25Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Eq for Ax25Error
impl StructuralPartialEq for Ax25Error
Auto Trait Implementations§
impl Freeze for Ax25Error
impl RefUnwindSafe for Ax25Error
impl Send for Ax25Error
impl Sync for Ax25Error
impl Unpin for Ax25Error
impl UnwindSafe for Ax25Error
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