#[non_exhaustive]pub enum SecretStoreError {
Backend(Box<dyn Error + Send + Sync + 'static>),
MissingEntries {
kind: SecretKind,
channel_ids: Vec<u64>,
},
}Expand description
Errors produced by DeRecSecretStore implementations.
Individual Verifiable Secret Sharing shares are information-theoretically
secure, so “secret” here refers only to SharedKey and
PairingKeyMaterial
— the two kinds of data stored in this trait.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Backend(Box<dyn Error + Send + Sync + 'static>)
An I/O or serialization error in the underlying storage backend.
Used when the implementation cannot categorise the failure more precisely (e.g., a file-system error, an SQLite constraint, or a serialization failure).
The original error is preserved as the source so that callers can
inspect the full error chain via std::error::Error::source.
MissingEntries
Returned by super::DeRecSecretStore::load_many when one or more
requested channels have no stored secret of the requested
SecretKind and the caller requested
super::MissingPolicy::Fail.
channel_ids carries the raw u64 ids of channels that came back empty;
the protocol orchestrator logs them at error! level and surfaces
the same list to consumers.
Trait Implementations§
Source§impl Debug for SecretStoreError
impl Debug for SecretStoreError
Source§impl Display for SecretStoreError
impl Display for SecretStoreError
Source§impl Error for SecretStoreError
impl Error for SecretStoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<SecretStoreError> for Error
impl From<SecretStoreError> for Error
Source§fn from(source: SecretStoreError) -> Self
fn from(source: SecretStoreError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for SecretStoreError
impl !UnwindSafe for SecretStoreError
impl Freeze for SecretStoreError
impl Send for SecretStoreError
impl Sync for SecretStoreError
impl Unpin for SecretStoreError
impl UnsafeUnpin for SecretStoreError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more