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§
source§impl<B, E, P> Policy<B, E> for Box<P>where
P: Policy<B, E> + ?Sized,
Available on crate feature follow-redirect
only.
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>
fn redirect(&mut self, attempt: &Attempt<'_>) -> Result<Action, E>
Invoked when the service received a response with a redirection status code (
3xx
). Read moresource§fn on_request(&mut self, request: &mut Request<B>)
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