[−][src]Enum devolutions_crypto::Error
This crate's error type.
Variants
The provided data has an invalid length. Error code: -1
The key length is invalid. Error code: -2
The length of the FFI output buffer is invalid. Error code: -3
The signature of the data blob does not match 0x0d0c. Error code: -11
The MAC is invalid. Error code: -12
The operation cannot be done with this type. Error code: -13
The data type is unknown. Error code: -21
The data subtype is unknown. Error code: -22
The data type version is unknown. Error code: -23
The data is invalid. Error code: -24
A null pointer has been passed to the FFI interface. Error code: -31
A cryptographic error occurred. Error code: -32
An error with the Random Number Generator occurred. Error code: -33
IoError(Error)
A generic IO error has occurred. Error code: -34
There is not enough shares to regenerate a secret: -41
The version of the multiple data is inconsistent: -42
Methods
impl Error
[src]
pub fn error_code(&self) -> i64
[src]
Returns the error code associated with the error. This is useful for passing the exception type across a language boundary.
pub fn description(&self) -> String
[src]
Returns a description of the error
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl<'_derivative_strum> From<&'_derivative_strum Error> for &'static str
[src]
impl From<BlockModeError> for Error
[src]
fn from(_error: BlockModeError) -> Error
[src]
impl From<Error> for &'static str
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<Error> for Error
[src]
impl From<InvalidKeyIvLength> for Error
[src]
fn from(_error: InvalidKeyIvLength) -> Error
[src]
impl From<InvalidKeyLength> for Error
[src]
impl From<MacError> for Error
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,