[][src]Enum lair_keystore_api::LairError

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

Keystore Error Type.

Variants

GhostError(GhostError)

An error generated from the GhostActor system.

ProcessAlreadyExists

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

IpcClientConnectError(StringBox<dyn Error + Send + Sync>)

Failure to establish client connection to Lair IPC.

PubKeyNotFound

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

Aead(String)

Error during aead encryption, likely bad data.

BlockPad(String)

Error adding padding to encrypt data.

BlockUnpad(String)

Error removing padding from decrypted data.

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(Box<dyn Error + Send + Sync>)

Unspecified Internal error.

Implementations

impl LairError[src]

pub fn other(e: impl Into<Box<dyn Error + Send + Sync>>) -> Self[src]

Build an "Other" type LairError.

Trait Implementations

impl Debug for LairError[src]

impl Display for LairError[src]

impl Error for LairError[src]

impl<'_> From<&'_ str> for LairError[src]

impl From<Error> for LairError[src]

impl From<GhostError> for LairError[src]

impl From<LairError> for ()[src]

impl From<PadError> for LairError[src]

impl From<String> for LairError[src]

impl From<UnpadError> for LairError[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> FutureExt for T

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]