Struct Failed

pub struct Failed<K>(pub K, pub BoxError);

An error indicating that the service with a K-typed key failed with an error.

Fields

0: K
1: BoxError

Trait Implementations

impl<K> Display for Failed<K>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<K: Debug> Debug for Failed<K>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<K: Debug> Error for Failed<K>

fn source(&self) -> Option<&dyn Error + 'static>

Auto Trait Implementations

impl<K> !RefUnwindSafe for Failed<K>

impl<K> !UnwindSafe for Failed<K>

impl<K> Freeze for Failed<K> where K: Freeze,

impl<K> Send for Failed<K> where K: Send,

impl<K> Sync for Failed<K> where K: Sync,

impl<K> Unpin for Failed<K> where K: Unpin,

impl<K> UnsafeUnpin for Failed<K> where K: UnsafeUnpin,

Blanket Implementations

impl<T> Any for Failed<K> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Failed<K> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Failed<K> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for Failed<K>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Instrument for Failed<K>

impl<T> ToString for Failed<K> where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T> WithSubscriber for Failed<K>

impl<T, U> Into<U> for Failed<K> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Failed<K> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Failed<K> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>