pub enum WfbError {
Show 20 variants
Empty,
TooLong,
ShortDataPacket,
ShortSessionPacket,
InvalidKeypair,
SessionEncryptFailed,
SessionDecryptFailed,
DataEncryptFailed,
DataDecryptFailed,
SessionEpochTooOld {
session_epoch: u64,
minimum_epoch: u64,
},
SessionChannelMismatch {
expected: u32,
actual: u32,
},
UnsupportedFecType(u8),
UnknownPacketType(u8),
InvalidFecParameters,
InvalidFragmentIndex,
BlockIndexOverflow,
InvalidPlainPacket,
PayloadTooLarge,
MissingSession,
FecRecoveryFailed,
}Expand description
Error returned while parsing, decrypting, or assembling WFB packets.
Variants§
Empty
Packet buffer is empty.
TooLong
Packet exceeds WFB forwarder size.
ShortDataPacket
Data packet is too short.
ShortSessionPacket
Session packet is too short.
InvalidKeypair
WFB keypair is not the expected 64-byte file shape.
SessionEncryptFailed
Session-key encryption failed.
SessionDecryptFailed
Session-key decryption failed.
DataEncryptFailed
Data encryption failed.
DataDecryptFailed
Data decryption failed.
SessionEpochTooOld
Session epoch was older than the configured minimum.
Fields
SessionChannelMismatch
Session packet was for a different WFB channel.
UnsupportedFecType(u8)
FEC type is not the supported VDM Reed-Solomon mode.
UnknownPacketType(u8)
Forwarder packet type is unknown.
InvalidFecParameters
FEC parameters are invalid.
InvalidFragmentIndex
Fragment index is outside the current FEC block.
BlockIndexOverflow
Data nonce encoded a block index beyond the supported range.
InvalidPlainPacket
Decrypted plain packet is malformed.
PayloadTooLarge
Plain payload exceeds the WFB maximum.
MissingSession
Encrypted data packet arrived before a session key.
FecRecoveryFailed
FEC recovery failed.
Trait Implementations§
impl Eq for WfbError
Source§impl Error for WfbError
impl Error for WfbError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()