pub enum CaduError {
BufferTooSmall {
required: usize,
provided: usize,
},
InputTooShort,
AsmMismatch,
}Expand description
Errors that can occur during CADU operations.
Variants§
BufferTooSmall
The output buffer is too small for the CADU.
InputTooShort
The input is too short to contain an ASM and frame.
AsmMismatch
The expected ASM was not found at the start of the data.
Trait Implementations§
Source§impl Error for CaduError
impl Error for CaduError
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 Copy for CaduError
impl Eq for CaduError
impl StructuralPartialEq for CaduError
Auto Trait Implementations§
impl Freeze for CaduError
impl RefUnwindSafe for CaduError
impl Send for CaduError
impl Sync for CaduError
impl Unpin for CaduError
impl UnsafeUnpin for CaduError
impl UnwindSafe for CaduError
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