Skip to main content

IntermediateAnyError

Struct IntermediateAnyError 

Source
pub struct IntermediateAnyError<C, K>
where C: AbstractContext, K: Kind,
{ /* private fields */ }
Expand description

The final AnyError in a intermediate state.

Trait Implementations§

Source§

impl<C, K, Q, R> Applicable<IntermediateAnyError<C, K>> for (Q, R)
where C: Context, K: Kind, Q: Into<C::Key>, R: Convertable<C::Converter, C::Value>,

Source§

fn apply(self, target: IntermediateAnyError<C, K>) -> Self::Output

Add context information represented as a key-value pairs to target using self’s components.

Source§

type Output = IntermediateAnyError<C, K>

The type of the result produced by applying the value to the target.
Source§

impl<C, K> From<AnyErrorBuilder<C, K>> for IntermediateAnyError<C, K>
where C: AbstractContext, K: Kind,

Source§

fn from(builder: AnyErrorBuilder<C, K>) -> Self

Converts to this type from the input type.
Source§

impl<C, K> From<IntermediateAnyError<C, K>> for AnyError<C, K>
where C: AbstractContext, K: Kind,

Source§

fn from(value: IntermediateAnyError<C, K>) -> Self

Converts to this type from the input type.
Source§

impl<C, K> Intermediate for IntermediateAnyError<C, K>
where C: AbstractContext, K: Kind,

Source§

type Output = AnyError<C, K>

The type of the final result of the wrapping procedure.
Source§

fn build(self) -> Self::Output

Instantiates the output with all provided data.
Source§

fn context<Q, R>(self, key: Q, value: R) -> Self
where (Q, R): Applicable<Self, Output = Self>,

Attachs additional context to the final output. Read more

Auto Trait Implementations§

§

impl<C, K> !RefUnwindSafe for IntermediateAnyError<C, K>

§

impl<C, K> !UnwindSafe for IntermediateAnyError<C, K>

§

impl<C, K> Freeze for IntermediateAnyError<C, K>
where K: Freeze, C: Freeze,

§

impl<C, K> Send for IntermediateAnyError<C, K>

§

impl<C, K> Sync for IntermediateAnyError<C, K>

§

impl<C, K> Unpin for IntermediateAnyError<C, K>
where K: Unpin, C: Unpin,

§

impl<C, K> UnsafeUnpin for IntermediateAnyError<C, K>
where K: UnsafeUnpin, C: UnsafeUnpin,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<S, T> Convertable<IntoConverter, T> for S
where S: Into<T>,

Source§

fn to(self) -> T

Converts the value into another type T using the specified converter C. The conversion should not fail, so not a Result<T, E> but a T is expected. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.