pub enum ObservedExpertProviderError<P, O> {
Provider(P),
Observer(O),
}Expand description
Failure from either canonical expert execution or its observation hook.
Variants§
Provider(P)
The wrapped provider rejected or failed the expert request.
Observer(O)
The observer rejected the normalized routing event.
Trait Implementations§
Source§impl<P, O> Display for ObservedExpertProviderError<P, O>
impl<P, O> Display for ObservedExpertProviderError<P, O>
Source§impl<P, O> Error for ObservedExpertProviderError<P, O>
impl<P, O> Error for ObservedExpertProviderError<P, O>
1.30.0 · 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()
Auto Trait Implementations§
impl<P, O> Freeze for ObservedExpertProviderError<P, O>
impl<P, O> RefUnwindSafe for ObservedExpertProviderError<P, O>where
P: RefUnwindSafe,
O: RefUnwindSafe,
impl<P, O> Send for ObservedExpertProviderError<P, O>
impl<P, O> Sync for ObservedExpertProviderError<P, O>
impl<P, O> Unpin for ObservedExpertProviderError<P, O>
impl<P, O> UnsafeUnpin for ObservedExpertProviderError<P, O>where
P: UnsafeUnpin,
O: UnsafeUnpin,
impl<P, O> UnwindSafe for ObservedExpertProviderError<P, O>where
P: UnwindSafe,
O: UnwindSafe,
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