Type Alias tower_async_http::BoxError

source ·
pub type BoxError = Box<dyn Error + Send + Sync>;
Expand description

Alias for a type-erased error type.

Aliased Type§

struct BoxError(/* private fields */);

Trait Implementations§

1.0.0 · source§

impl<T, A> Deref for Box<T, A>where A: Allocator, T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

impl<B, E, P> Policy<B, E> for Box<P>where P: Policy<B, E> + ?Sized,

Available on crate feature follow-redirect only.
source§

fn redirect(&mut self, attempt: &Attempt<'_>) -> Result<Action, E>

Invoked when the service received a response with a redirection status code (3xx). Read more
source§

fn on_request(&mut self, request: &mut Request<B>)

Invoked right before the service makes a request, regardless of whether it is redirected or not. Read more
source§

fn clone_body(&self, body: &B) -> Option<B>

Try to clone a request body before the service makes a redirected request. Read more