[]Enum themis::ErrorKind

pub enum ErrorKind {
    Fail,
    InvalidParameter,
    NoMemory,
    BufferTooSmall,
    DataCorrupt,
    InvalidSignature,
    NotSupported,
    SessionKeyAgreementNotFinished,
    SessionTransportError(TransportError),
    SessionGetPublicKeyForIdError,
    CompareNotReady,
    // some variants omitted
}

A list of Themis error categories.

This enumeration is used by Error type, returned by most Themis functions. Some error kinds are specific to particular functions, and some are used internally by the library.

Variants

Fail

General failure.

InvalidParameter

Some input parameter has incorrect value.

NoMemory

Could not allocate memory.

BufferTooSmall

The provided buffer is too small to fit the result.

DataCorrupt

Input data is corrupted.

InvalidSignature

Input data contains invalid signature.

NotSupported

Operation not supported.

SessionKeyAgreementNotFinished

Attempt to use Secure Session before completing key exchange.

SessionTransportError(TransportError)

Transport layer returned error.

SessionGetPublicKeyForIdError

Could not retrieve a public key corresponding to peer ID.

CompareNotReady

Attempt to use Secure Comparator before completing nonce exchange.

Trait Implementations

impl Eq for ErrorKind

impl PartialEq<ErrorKind> for ErrorKind

impl<'_> PartialEq<&'_ ErrorKind> for ErrorKind

impl<'_> PartialEq<ErrorKind> for &'_ ErrorKind

impl Debug for ErrorKind

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]