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
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
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 Debug for ErrorKind
[src]
impl Debug for ErrorKind
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ErrorKind
[src]
impl PartialEq for ErrorKind
fn eq(&self, other: &ErrorKind) -> bool
[src]
fn eq(&self, other: &ErrorKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ErrorKind) -> bool
[src]
fn ne(&self, other: &ErrorKind) -> bool
This method tests for !=
.
impl Eq for ErrorKind
[src]
impl Eq for ErrorKind
impl Clone for ErrorKind
[src]
impl Clone for ErrorKind
fn clone(&self) -> ErrorKind
[src]
fn clone(&self) -> ErrorKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ErrorKind
[src]
impl Copy for ErrorKind