[]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 PartialEq<ErrorKind> for ErrorKind

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Eq for ErrorKind

impl Debug for ErrorKind

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.