pub struct ScoredError<E> {
pub error: E,
pub score: Score,
}
Expand description
A error with a score, used to find the root cause of multiple failures.
Fields§
§error: E
§score: Score
Trait Implementations§
Source§impl<E: Clone> Clone for ScoredError<E>
impl<E: Clone> Clone for ScoredError<E>
Source§fn clone(&self) -> ScoredError<E>
fn clone(&self) -> ScoredError<E>
Returns a copy 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<E: Debug> Debug for ScoredError<E>
impl<E: Debug> Debug for ScoredError<E>
Source§impl<E: Display> Display for ScoredError<E>
impl<E: Display> Display for ScoredError<E>
Source§impl<E: Error> Error for ScoredError<E>
impl<E: Error> Error for ScoredError<E>
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
Source§fn provide<'a>(&'a self, request: &mut Request<'a>)
fn provide<'a>(&'a self, request: &mut Request<'a>)
🔬This is a nightly-only experimental API. (
error_generic_member_access
)Provides type-based access to context intended for error reports. 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<E> Freeze for ScoredError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ScoredError<E>where
E: RefUnwindSafe,
impl<E> Send for ScoredError<E>where
E: Send,
impl<E> Sync for ScoredError<E>where
E: Sync,
impl<E> Unpin for ScoredError<E>where
E: Unpin,
impl<E> UnwindSafe for ScoredError<E>where
E: UnwindSafe,
Blanket Implementations§
§impl<T> AsReport for Twhere
T: Error,
impl<T> AsReport for Twhere
T: Error,
§fn to_report_string(&self) -> String
fn to_report_string(&self) -> String
§fn to_report_string_with_backtrace(&self) -> String
fn to_report_string_with_backtrace(&self) -> String
§fn to_report_string_pretty(&self) -> String
fn to_report_string_pretty(&self) -> String
§fn to_report_string_pretty_with_backtrace(&self) -> String
fn to_report_string_pretty_with_backtrace(&self) -> String
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> 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