Enum lock_keeper::error::LockKeeperError
source · pub enum LockKeeperError {
Show 20 variants
Crypto(CryptoError),
UnknownSecretType(String),
InvalidSecretType,
InvalidKeyIdLength,
InvalidClientAction,
MetadataNotFound,
InvalidMessage,
NoMessageReceived,
AlreadyAuthenticated,
ShouldBeAuthenticated,
InvalidPrivateKey,
InvalidRemoteStorageKey,
Hex(FromHexError),
Io(Error),
FileIo(Error, PathBuf),
OpaqueProtocol(ProtocolError),
SerdeJson(Error),
TokioSender(String),
TonicMetadata(InvalidMetadataValueBytes),
TonicStatus(Status),
}
Variants§
Crypto(CryptoError)
UnknownSecretType(String)
InvalidSecretType
InvalidKeyIdLength
InvalidClientAction
MetadataNotFound
InvalidMessage
NoMessageReceived
AlreadyAuthenticated
ShouldBeAuthenticated
InvalidPrivateKey
InvalidRemoteStorageKey
Hex(FromHexError)
Io(Error)
Generic kitchen sink IO error. Use LockKeeperError::FileIo if the IO error is specifically related to working with files.
FileIo(Error, PathBuf)
IO error specific to file IO failing. Allows us to include the file that failed as part of the error.
OpaqueProtocol(ProtocolError)
SerdeJson(Error)
TokioSender(String)
TonicMetadata(InvalidMetadataValueBytes)
TonicStatus(Status)
Trait Implementations§
source§impl Debug for LockKeeperError
impl Debug for LockKeeperError
source§impl Display for LockKeeperError
impl Display for LockKeeperError
source§impl Error for LockKeeperError
impl Error for LockKeeperError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<CryptoError> for LockKeeperError
impl From<CryptoError> for LockKeeperError
source§impl From<Error> for LockKeeperError
impl From<Error> for LockKeeperError
source§impl From<Error> for LockKeeperError
impl From<Error> for LockKeeperError
source§impl From<FromHexError> for LockKeeperError
impl From<FromHexError> for LockKeeperError
source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
source§impl From<InvalidMetadataValueBytes> for LockKeeperError
impl From<InvalidMetadataValueBytes> for LockKeeperError
source§fn from(source: InvalidMetadataValueBytes) -> Self
fn from(source: InvalidMetadataValueBytes) -> Self
Converts to this type from the input type.
source§impl From<LockKeeperError> for Status
impl From<LockKeeperError> for Status
source§fn from(error: LockKeeperError) -> Self
fn from(error: LockKeeperError) -> Self
Converts to this type from the input type.
source§impl From<ProtocolError> for LockKeeperError
impl From<ProtocolError> for LockKeeperError
source§impl<T> From<SendError<T>> for LockKeeperError
impl<T> From<SendError<T>> for LockKeeperError
Auto Trait Implementations§
impl !Freeze for LockKeeperError
impl !RefUnwindSafe for LockKeeperError
impl Send for LockKeeperError
impl Sync for LockKeeperError
impl Unpin for LockKeeperError
impl !UnwindSafe for LockKeeperError
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
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request