pub enum SecretError {
ItemNotFound(u32),
DecodeUtf8Error(FromUtf8Error),
IoError(Error),
UnspecifiedRefType(u32),
AesError,
ProtoError(Error),
Internal(Error),
}
Variants§
ItemNotFound(u32)
DecodeUtf8Error(FromUtf8Error)
IoError(Error)
UnspecifiedRefType(u32)
AesError
ProtoError(Error)
Internal(Error)
Implementations§
source§impl SecretError
impl SecretError
sourcepub fn item_not_found(arg_0: impl Into<u32>) -> Self
pub fn item_not_found(arg_0: impl Into<u32>) -> Self
Constructs a SecretError::ItemNotFound
variant.
sourcepub fn unspecified_ref_type(arg_0: impl Into<u32>) -> Self
pub fn unspecified_ref_type(arg_0: impl Into<u32>) -> Self
Constructs a SecretError::UnspecifiedRefType
variant.
sourcepub fn aes_error() -> Self
pub fn aes_error() -> Self
Constructs a SecretError::AesError
variant.
Trait Implementations§
source§impl Debug for SecretError
impl Debug for SecretError
source§impl Display for SecretError
impl Display for SecretError
source§impl Error for SecretError
impl Error for SecretError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<Error> for SecretError
impl From<Error> for SecretError
source§impl From<Error> for SecretError
impl From<Error> for SecretError
source§impl From<FromUtf8Error> for SecretError
impl From<FromUtf8Error> for SecretError
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SecretError
impl !RefUnwindSafe for SecretError
impl Send for SecretError
impl Sync for SecretError
impl Unpin for SecretError
impl !UnwindSafe for SecretError
Blanket Implementations§
§impl<T> AsReport for Twhere
T: Error,
impl<T> AsReport for Twhere
T: Error,
§fn as_report(&self) -> Report<'_>
fn as_report(&self) -> Report<'_>
Returns a [
Report
] that formats the error and its sources in a
cleaned-up way. Read more§fn to_report_string(&self) -> String
fn to_report_string(&self) -> String
Converts the error to a [
Report
] and formats it in a compact way. Read more§fn to_report_string_with_backtrace(&self) -> String
fn to_report_string_with_backtrace(&self) -> String
Converts the error to a [
Report
] and formats it in a compact way,
including backtraces if available. Read more§fn to_report_string_pretty(&self) -> String
fn to_report_string_pretty(&self) -> String
Converts the error to a [
Report
] and formats it in a pretty way. Read more§fn to_report_string_pretty_with_backtrace(&self) -> String
fn to_report_string_pretty_with_backtrace(&self) -> String
Converts the error to a [
Report
] and formats it in a pretty way, Read moresource§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> ErrorIsFromTonicServerImpl for T
impl<T> ErrorIsFromTonicServerImpl for T
source§fn is_from_tonic_server_impl(&self) -> bool
fn is_from_tonic_server_impl(&self) -> bool
Returns whether the error is from the implementation of a tonic server, i.e., created
with
ToTonicStatus::to_status
. Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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