pub struct SignerError(pub SignerErrorDetail, pub DefaultTracer);Tuple Fields§
§0: SignerErrorDetail§1: DefaultTracerImplementations§
Source§impl SignerError
impl SignerError
pub fn detail(&self) -> &SignerErrorDetail
pub fn into_detail(self) -> SignerErrorDetail
pub fn trace(&self) -> &DefaultTracer
pub fn into_trace(self) -> DefaultTracer
pub fn add_trace<E: Display>(self, message: &E) -> Selfwhere
DefaultTracer: ErrorMessageTracer,
pub fn trace_from<E, Cont>(source: E::Source, cont: Cont) -> Selfwhere
E: ErrorSource<DefaultTracer>,
DefaultTracer: ErrorMessageTracer,
Cont: FnOnce(E::Detail) -> SignerErrorDetail,
Source§impl SignerError
impl SignerError
pub fn empty_signer() -> SignerError
Trait Implementations§
Source§impl Debug for SignerErrorwhere
DefaultTracer: Debug,
impl Debug for SignerErrorwhere
DefaultTracer: Debug,
Source§impl Display for SignerErrorwhere
DefaultTracer: Debug,
impl Display for SignerErrorwhere
DefaultTracer: Debug,
Source§impl ErrorSource<StringTracer> for SignerError
impl ErrorSource<StringTracer> for SignerError
Source§type Source = SignerError
type Source = SignerError
The type of the error source.
Source§type Detail = SignerErrorDetail
type Detail = SignerErrorDetail
The type of the error detail that can be extracted from the error source
Source§fn error_details(
SignerError: Self,
) -> (SignerErrorDetail, Option<DefaultTracer>)
fn error_details( SignerError: Self, ) -> (SignerErrorDetail, Option<DefaultTracer>)
Extracts the error details out from the error source, together with
an optional error trace.
Source§impl Error for SignerError
impl Error for SignerError
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + '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()
Auto Trait Implementations§
impl Freeze for SignerError
impl RefUnwindSafe for SignerError
impl Send for SignerError
impl Sync for SignerError
impl Unpin for SignerError
impl UnwindSafe for SignerError
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> 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::Request