Enum themis::ErrorKind[][src]

pub enum ErrorKind {
    Fail,
    InvalidParameter,
    NoMemory,
    BufferTooSmall,
    DataCorrupt,
    InvalidSignature,
    NotSupported,
    SessionKeyAgreementNotFinished,
    SessionTransportError,
    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

General failure.

Some input parameter has incorrect value.

Could not allocate memory.

The provided buffer is too small to fit the result.

Input data is corrupted.

Input data contains invalid signature.

Operation not supported.

Attempt to use Secure Session before completing key exchange.

Transport layer returned error.

Could not retrieve a public key corresponding to peer ID.

Attempt to use Secure Comparator before completing nonce exchange.

Trait Implementations

impl Debug for ErrorKind
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ErrorKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ErrorKind
[src]

impl Clone for ErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ErrorKind
[src]

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind