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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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