pub struct OtherError(pub Arc<dyn Error + Send + Sync>);Available on crate feature
net only.Expand description
Any other error that cannot be expressed by a more specific Error variant.
For example, an OtherError could be produced by a custom crypto provider
exposing a provider specific error.
Enums holding this type will never compare equal to each other.
Tuple Fieldsยง
ยง0: Arc<dyn Error + Send + Sync>Trait Implementationsยง
Sourceยงimpl Clone for OtherError
impl Clone for OtherError
Sourceยงfn clone(&self) -> OtherError
fn clone(&self) -> OtherError
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for OtherError
impl Debug for OtherError
Sourceยงimpl Display for OtherError
impl Display for OtherError
Sourceยงimpl Error for OtherError
impl Error for OtherError
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<OtherError> for Error
impl From<OtherError> for Error
Sourceยงfn from(value: OtherError) -> Error
fn from(value: OtherError) -> Error
Converts to this type from the input type.
Sourceยงimpl PartialEq for OtherError
impl PartialEq for OtherError
Auto Trait Implementationsยง
impl Freeze for OtherError
impl !RefUnwindSafe for OtherError
impl Send for OtherError
impl Sync for OtherError
impl Unpin for OtherError
impl !UnwindSafe for OtherError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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::RequestSourceยง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.