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
An error generated from the GhostActor system.
Tuple Fields of GhostError
0: GhostError
Trying to start up Lair process, but a pidfile/process already exists
Failure to establish client connection to Lair IPC.
A public key was provided (e.g. for signing) that cannot be found in the keystore
Error during aead encryption, likely bad data.
Tuple Fields of Aead
0: String
Error adding padding to encrypt data.
Tuple Fields of BlockPad
0: String
Error removing padding from decrypted data.
Tuple Fields of BlockUnpad
0: String
Nonce byte lengths did not line up internally. Always very bad.
X25519 pub key lengths did not line up internally. Always very bad.
X25519 priv key lengths did not line up internally. Always very bad.
Unspecified Internal error.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for LairError
impl !UnwindSafe for LairError
Blanket Implementations
Mutably borrows from an owned value. Read more
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
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