[−][src]Struct hyperdrive::service::CatchUnwind
A Service
adapter that catches unwinding panics.
Returned by ServiceExt::catch_unwind
.
Trait Implementations
impl<S, R, H> Clone for CatchUnwind<S, R, H> where
S: Service<ResBody = Body, Error = BoxedError> + Clone + Sync,
S::Future: Send + 'static,
R: IntoFuture<Item = Response<Body>, Error = BoxedError>,
R::Future: Send + 'static,
H: Fn(Box<dyn Any + Send>) -> R + Send + Sync + 'static,
[src]
S: Service<ResBody = Body, Error = BoxedError> + Clone + Sync,
S::Future: Send + 'static,
R: IntoFuture<Item = Response<Body>, Error = BoxedError>,
R::Future: Send + 'static,
H: Fn(Box<dyn Any + Send>) -> R + Send + Sync + 'static,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<S: Debug, R: Debug, H: Debug> Debug for CatchUnwind<S, R, H> where
S: Service<ResBody = Body, Error = BoxedError> + Sync,
S::Future: Send + 'static,
R: IntoFuture<Item = Response<Body>, Error = BoxedError>,
R::Future: Send + 'static,
H: Fn(Box<dyn Any + Send>) -> R + Send + Sync + 'static,
[src]
S: Service<ResBody = Body, Error = BoxedError> + Sync,
S::Future: Send + 'static,
R: IntoFuture<Item = Response<Body>, Error = BoxedError>,
R::Future: Send + 'static,
H: Fn(Box<dyn Any + Send>) -> R + Send + Sync + 'static,
impl<S, R, H> Service for CatchUnwind<S, R, H> where
S: Service<ResBody = Body, Error = BoxedError> + Sync,
S::Future: Send + 'static,
R: IntoFuture<Item = Response<Body>, Error = BoxedError>,
R::Future: Send + 'static,
H: Fn(Box<dyn Any + Send>) -> R + Send + Sync + 'static,
[src]
S: Service<ResBody = Body, Error = BoxedError> + Sync,
S::Future: Send + 'static,
R: IntoFuture<Item = Response<Body>, Error = BoxedError>,
R::Future: Send + 'static,
H: Fn(Box<dyn Any + Send>) -> R + Send + Sync + 'static,
type ReqBody = S::ReqBody
The Payload
body of the http::Request
.
type ResBody = Body
The Payload
body of the http::Response
.
type Error = BoxedError
The error type that can occur within this Service
. Read more
type Future = DefaultFuture<Response<Body>, BoxedError>
The Future
returned by this Service
.
fn call(&mut self, req: Request<Self::ReqBody>) -> Self::Future
[src]
fn poll_ready(&mut self) -> Result<Async<()>, Self::Error>
[src]
Returns Ready
when the service is able to process requests. Read more
Auto Trait Implementations
impl<S, R, H> Sync for CatchUnwind<S, R, H>
impl<S, R, H> Unpin for CatchUnwind<S, R, H> where
S: Unpin,
S: Unpin,
impl<S, R, H> Send for CatchUnwind<S, R, H> where
S: Send,
S: Send,
impl<S, R, H> UnwindSafe for CatchUnwind<S, R, H> where
H: RefUnwindSafe,
S: UnwindSafe,
H: RefUnwindSafe,
S: UnwindSafe,
impl<S, R, H> RefUnwindSafe for CatchUnwind<S, R, H> where
H: RefUnwindSafe,
S: RefUnwindSafe,
H: RefUnwindSafe,
S: RefUnwindSafe,
Blanket Implementations
impl<T> ServiceExt for T where
T: Service,
[src]
T: Service,
fn catch_unwind<H, R>(Self, H) -> CatchUnwind<T, R, H> where
H: Fn(Box<dyn Any + 'static + Send>) -> R + Send + Sync + 'static,
R: IntoFuture<Item = Response<Body>, Error = Box<dyn Error + 'static + Send + Sync>>,
T: Service<ResBody = Body, Error = Box<dyn Error + 'static + Send + Sync>> + Sync,
<T as Service>::Future: Send,
<R as IntoFuture>::Future: Send,
<R as IntoFuture>::Future: 'static,
[src]
H: Fn(Box<dyn Any + 'static + Send>) -> R + Send + Sync + 'static,
R: IntoFuture<Item = Response<Body>, Error = Box<dyn Error + 'static + Send + Sync>>,
T: Service<ResBody = Body, Error = Box<dyn Error + 'static + Send + Sync>> + Sync,
<T as Service>::Future: Send,
<R as IntoFuture>::Future: Send,
<R as IntoFuture>::Future: 'static,
fn make_service_by_cloning(Self) -> MakeServiceByCloning<T> where
T: Clone,
[src]
T: Clone,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,