pub enum OutfoxError {
LenMismatch {
expected: usize,
got: usize,
},
ChaCha20InvalidLength {
source: InvalidLength,
},
ChaCha20Poly1305Error(String),
InvalidKeyLength,
InvalidMessageLength,
TryFromSlice {
source: TryFromSliceError,
},
InvalidHeaderLength(usize),
InvalidMagicBytes(Vec<u8>),
}Variants§
LenMismatch
ChaCha20InvalidLength
Fields
§
source: InvalidLengthChaCha20Poly1305Error(String)
InvalidKeyLength
InvalidMessageLength
TryFromSlice
Fields
§
source: TryFromSliceErrorInvalidHeaderLength(usize)
InvalidMagicBytes(Vec<u8>)
Trait Implementations§
Source§impl Clone for OutfoxError
impl Clone for OutfoxError
Source§fn clone(&self) -> OutfoxError
fn clone(&self) -> OutfoxError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OutfoxError
impl Debug for OutfoxError
Source§impl Display for OutfoxError
impl Display for OutfoxError
Source§impl Error for OutfoxError
impl Error for OutfoxError
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<InvalidLength> for OutfoxError
impl From<InvalidLength> for OutfoxError
Source§fn from(source: InvalidLength) -> Self
fn from(source: InvalidLength) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for OutfoxError
impl From<TryFromSliceError> for OutfoxError
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OutfoxError
impl RefUnwindSafe for OutfoxError
impl Send for OutfoxError
impl Sync for OutfoxError
impl Unpin for OutfoxError
impl UnsafeUnpin for OutfoxError
impl UnwindSafe for OutfoxError
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