pub enum NetworkError {
Crypto(CryptoError),
InvalidFrame(&'static str),
InvalidCookie,
ReassemblyFailed,
UnknownStation,
X25519Consumed,
}Expand description
Errors that can occur during WPA-Next network / protocol operations.
Variants§
Crypto(CryptoError)
An underlying cryptographic primitive failed.
InvalidFrame(&'static str)
A received frame had an invalid magic, version, or type field.
InvalidCookie
The DoS-mitigation cookie in a fragment-0 frame did not verify.
ReassemblyFailed
Fragment reassembly failed — fragments were incomplete, out-of-range, or had mismatched sequence IDs.
UnknownStation
A non-initial fragment arrived with no prior reassembly state (fragment 0 was never received or cookie failed).
X25519Consumed
The X25519 key pair was already consumed — each ephemeral key pair is single-use.
Trait Implementations§
Source§impl Debug for NetworkError
impl Debug for NetworkError
Source§impl Display for NetworkError
impl Display for NetworkError
Source§impl Error for NetworkError
impl Error for NetworkError
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()
Source§impl From<CryptoError> for NetworkError
impl From<CryptoError> for NetworkError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetworkError
impl RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl UnsafeUnpin for NetworkError
impl UnwindSafe for NetworkError
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