Enum lair_keystore_api::LairError[][src]

pub enum LairError {
    GhostError(GhostError),
    ProcessAlreadyExists,
    IpcClientConnectError(String, Box<dyn Error + Send + Sync>),
    PubKeyNotFound,
    Aead(String),
    BlockPad(String),
    BlockUnpad(String),
    CryptoBoxNonceLength,
    X25519PubKeyLength,
    X25519PrivKeyLength,
    Other(Box<dyn Error + Send + Sync>),
}
Expand description

Keystore Error Type.

Variants

GhostError

An error generated from the GhostActor system.

Tuple Fields of GhostError

0: GhostError
ProcessAlreadyExists

Trying to start up Lair process, but a pidfile/process already exists

IpcClientConnectError

Failure to establish client connection to Lair IPC.

Tuple Fields of IpcClientConnectError

0: String1: Box<dyn Error + Send + Sync>
PubKeyNotFound

A public key was provided (e.g. for signing) that cannot be found in the keystore

Aead

Error during aead encryption, likely bad data.

Tuple Fields of Aead

0: String
BlockPad

Error adding padding to encrypt data.

Tuple Fields of BlockPad

0: String
BlockUnpad

Error removing padding from decrypted data.

Tuple Fields of BlockUnpad

0: String
CryptoBoxNonceLength

Nonce byte lengths did not line up internally. Always very bad.

X25519PubKeyLength

X25519 pub key lengths did not line up internally. Always very bad.

X25519PrivKeyLength

X25519 priv key lengths did not line up internally. Always very bad.

Other

Unspecified Internal error.

Tuple Fields of Other

0: Box<dyn Error + Send + Sync>

Implementations

Build an “Other” type LairError.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more

Attaches the current Context to this type, returning a WithContext wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more