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,
}Variants§
Empty
TooLong
ShortDataPacket
ShortSessionPacket
InvalidKeypair
SessionEncryptFailed
SessionDecryptFailed
DataEncryptFailed
DataDecryptFailed
SessionEpochTooOld
SessionChannelMismatch
UnsupportedFecType(u8)
UnknownPacketType(u8)
InvalidFecParameters
InvalidFragmentIndex
BlockIndexOverflow
InvalidPlainPacket
PayloadTooLarge
MissingSession
FecRecoveryFailed
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)>
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 StructuralPartialEq for WfbError
Auto Trait Implementations§
impl Freeze for WfbError
impl RefUnwindSafe for WfbError
impl Send for WfbError
impl Sync for WfbError
impl Unpin for WfbError
impl UnsafeUnpin for WfbError
impl UnwindSafe for WfbError
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