Enum memsecurity::MemSecurityErr
source · pub enum MemSecurityErr {
EncryptionErr,
DecryptionError,
InvalidArrayLength {
expected: usize,
found: usize,
},
InvalidSliceLength {
expected: usize,
found: usize,
},
}
Expand description
Errors encountered in execution of the code in this crate
Variants§
EncryptionErr
An error was encountered while encrypting the data using Ascon128a
DecryptionError
An error was encountered when decrypting data using Ascon128a
InvalidArrayLength
Fields
The length of the arrays should be the same
InvalidSliceLength
Fields
The length of the arrays should be the same
Trait Implementations§
source§impl Clone for MemSecurityErr
impl Clone for MemSecurityErr
source§fn clone(&self) -> MemSecurityErr
fn clone(&self) -> MemSecurityErr
Returns a copy 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 MemSecurityErr
impl Debug for MemSecurityErr
source§impl Ord for MemSecurityErr
impl Ord for MemSecurityErr
source§fn cmp(&self, other: &MemSecurityErr) -> Ordering
fn cmp(&self, other: &MemSecurityErr) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MemSecurityErr
impl PartialEq for MemSecurityErr
source§fn eq(&self, other: &MemSecurityErr) -> bool
fn eq(&self, other: &MemSecurityErr) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MemSecurityErr
impl PartialOrd for MemSecurityErr
source§fn partial_cmp(&self, other: &MemSecurityErr) -> Option<Ordering>
fn partial_cmp(&self, other: &MemSecurityErr) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MemSecurityErr
impl Eq for MemSecurityErr
impl StructuralEq for MemSecurityErr
impl StructuralPartialEq for MemSecurityErr
Auto Trait Implementations§
impl RefUnwindSafe for MemSecurityErr
impl Send for MemSecurityErr
impl Sync for MemSecurityErr
impl Unpin for MemSecurityErr
impl UnwindSafe for MemSecurityErr
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