pub enum Error {
Show 14 variants
Base64Decode(DecodeError),
Config(ConfigError),
Infallible(Infallible),
Io(Error),
IrohBind(BindError),
MissingConfig(&'static str),
OsStringConvert(OsString),
SliceTryFrom(TryFromSliceError),
TomlDe(Error),
TomlSer(Error),
ProtoSerialize(ProtoSerializeError),
ProtoDeserialize(ProtoDeserializeError),
LocalDb(DbErr),
TripodId(Error),
}Variants§
Base64Decode(DecodeError)
Config(ConfigError)
Infallible(Infallible)
Io(Error)
IrohBind(BindError)
MissingConfig(&'static str)
OsStringConvert(OsString)
SliceTryFrom(TryFromSliceError)
TomlDe(Error)
TomlSer(Error)
ProtoSerialize(ProtoSerializeError)
ProtoDeserialize(ProtoDeserializeError)
LocalDb(DbErr)
TripodId(Error)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<ConfigError> for Error
impl From<ConfigError> for Error
Source§fn from(source: ConfigError) -> Error
fn from(source: ConfigError) -> Error
Converts to this type from the input type.
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(source: DecodeError) -> Error
fn from(source: DecodeError) -> Error
Converts to this type from the input type.
Source§impl From<Infallible> for Error
impl From<Infallible> for Error
Source§fn from(source: Infallible) -> Error
fn from(source: Infallible) -> Error
Converts to this type from the input type.
Source§impl From<ProtoDeserializeError> for Error
impl From<ProtoDeserializeError> for Error
Source§fn from(source: ProtoDeserializeError) -> Error
fn from(source: ProtoDeserializeError) -> Error
Converts to this type from the input type.
Source§impl From<ProtoSerializeError> for Error
impl From<ProtoSerializeError> for Error
Source§fn from(source: ProtoSerializeError) -> Error
fn from(source: ProtoSerializeError) -> Error
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for Error
impl From<TryFromSliceError> for Error
Source§fn from(source: TryFromSliceError) -> Error
fn from(source: TryFromSliceError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<T, U> AsyncTryInto<T> for Uwhere
T: AsyncTryFrom<U>,
impl<T, U> AsyncTryInto<T> for Uwhere
T: AsyncTryFrom<U>,
type Error = <T as AsyncTryFrom<U>>::Error
async fn async_try_into(self) -> Result<T, <U as AsyncTryInto<T>>::Error>
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
impl<E> InstrumentError for Ewhere
TracedError<E>: From<E>,
Source§type Instrumented = TracedError<E>
type Instrumented = TracedError<E>
The type of the wrapped error after instrumentation
Source§fn in_current_span(self) -> <E as InstrumentError>::Instrumented
fn in_current_span(self) -> <E as InstrumentError>::Instrumented
Instrument an Error by bundling it with a SpanTrace Read more
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§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::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.