[−][src]Enum devolutions_crypto::DevoCryptoError
The enum containing the various error types.
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
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
Methods
impl DevoCryptoError
[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.
Trait Implementations
impl From<InvalidKeyLength> for DevoCryptoError
[src]
fn from(_error: InvalidKeyLength) -> DevoCryptoError
[src]
impl From<MacError> for DevoCryptoError
[src]
fn from(_error: MacError) -> DevoCryptoError
[src]
impl From<InvalidKeyIvLength> for DevoCryptoError
[src]
fn from(_error: InvalidKeyIvLength) -> DevoCryptoError
[src]
impl From<BlockModeError> for DevoCryptoError
[src]
fn from(_error: BlockModeError) -> DevoCryptoError
[src]
impl From<Error> for DevoCryptoError
[src]
fn from(_error: Error) -> DevoCryptoError
[src]
impl From<Error> for DevoCryptoError
[src]
fn from(_error: Error) -> DevoCryptoError
[src]
impl From<Error> for DevoCryptoError
[src]
fn from(_error: Error) -> DevoCryptoError
[src]
impl Debug for DevoCryptoError
[src]
impl Display for DevoCryptoError
[src]
impl Error for DevoCryptoError
[src]
Auto Trait Implementations
impl Send for DevoCryptoError
impl Sync for DevoCryptoError
impl Unpin for DevoCryptoError
impl !UnwindSafe for DevoCryptoError
impl !RefUnwindSafe for DevoCryptoError
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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 = !
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,