Struct viz_core::handler::Around

source ·
pub struct Around<H, F> { /* private fields */ }
Expand description

Wraps around the remaining handler or middleware chain.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The returned type after the call operator is used.
Performs the call operation.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Converts this Handler into a BoxHandler.
Maps the input before the handler calls.
Maps the output Result<T> after the handler called.
Wraps around the remaining handler or middleware chain.
Maps the Ok value of the output if after the handler called.
Maps the handler’s output type to the Response.
Calls op if the result is Ok, otherwise returns the Err value of self.
Maps the Err value of the output if after the handler called.
Calls op if the output is Err, otherwise returns the Ok value of the output.
Catches rejected error while calling the handler.
Catches unwinding panics while calling the handler.
Returns a new Handler that wrapping the Self and a type implementing Transform.
Maps the handler.
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more