pub enum TransportError {
Show 13 variants
Frame(FrameError),
Io(Error),
AuthenticationFailed,
UnknownSession,
NonceReplay,
NonceTooOld,
FrameTooSmall,
ConnectionTimeout,
MaxRetransmitsExceeded,
ConnectionClosed,
AmplificationLimit,
MigrationRateLimited,
CounterExhaustion,
}transport only.Expand description
Transport layer errors.
Variants§
Frame(FrameError)
Frame parsing error.
Io(Error)
I/O error (socket operations).
AuthenticationFailed
Invalid AEAD tag - frame authentication failed. Per spec: silently drop, do not respond.
UnknownSession
Unknown session ID. Per spec: silently drop to prevent session enumeration.
NonceReplay
Nonce replay detected. Per spec: silently drop to prevent replay attacks.
NonceTooOld
Nonce too old (outside anti-replay window). Per spec: silently drop.
FrameTooSmall
Frame too small to be valid. Per spec: silently drop to prevent parsing exploits.
ConnectionTimeout
Connection has timed out.
MaxRetransmitsExceeded
Too many retransmissions, connection failed.
ConnectionClosed
Connection is closed.
AmplificationLimit
Anti-amplification limit reached.
MigrationRateLimited
Migration rate limited.
CounterExhaustion
Counter exhaustion - nonce counter overflow. This is a critical security error requiring session termination.
Implementations§
Source§impl TransportError
impl TransportError
Sourcepub fn is_silent_drop(&self) -> bool
pub fn is_silent_drop(&self) -> bool
Check if this error should result in silent drop (no response sent).
Per 2-TRANSPORT.md, these errors should not generate any response to prevent information leakage to attackers.
Sourcepub fn is_security_error(&self) -> bool
pub fn is_security_error(&self) -> bool
Check if this error is a security-related error.