pub enum RivideError {
InvalidParameter,
VerificationFailed,
EntropyFailure,
InternalError,
}Expand description
The primary error type for all Rivide cryptographic operations.
Variants§
InvalidParameter
Invalid parameter supplied to a cryptographic routine (e.g. null buffer or invalid length).
VerificationFailed
Digital signature or AEAD authentication tag verification failed.
EntropyFailure
Operating system CSPRNG failed to supply requested entropy bytes.
InternalError
Internal cryptographic or hardware state fault.
Trait Implementations§
Source§impl Clone for RivideError
impl Clone for RivideError
Source§fn clone(&self) -> RivideError
fn clone(&self) -> RivideError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RivideError
Source§impl Debug for RivideError
impl Debug for RivideError
Source§impl Display for RivideError
impl Display for RivideError
impl Eq for RivideError
Source§impl Error for RivideError
impl Error for RivideError
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()
Source§impl PartialEq for RivideError
impl PartialEq for RivideError
impl StructuralPartialEq for RivideError
Auto Trait Implementations§
impl Freeze for RivideError
impl RefUnwindSafe for RivideError
impl Send for RivideError
impl Sync for RivideError
impl Unpin for RivideError
impl UnsafeUnpin for RivideError
impl UnwindSafe for RivideError
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