pub struct WithGracefulShutdown<M, S, F> { /* private fields */ }
Expand description
Serve future with graceful shutdown enabled.
Trait Implementations§
§impl<M, S, F> Debug for WithGracefulShutdown<M, S, F>
impl<M, S, F> Debug for WithGracefulShutdown<M, S, F>
§impl<M, S, F> IntoFuture for WithGracefulShutdown<M, S, F>where
M: Send + 'static + for<'a> Service<IncomingStream<'a>, Error = Infallible, Response = S>,
<M as Service<IncomingStream<'a>>>::Future: for<'a> Send,
S: Service<Request<Body>, Response = Response<Body>, Error = Infallible> + Clone + Send + 'static,
<S as Service<Request<Body>>>::Future: Send,
F: Future<Output = ()> + Send + 'static,
impl<M, S, F> IntoFuture for WithGracefulShutdown<M, S, F>where
M: Send + 'static + for<'a> Service<IncomingStream<'a>, Error = Infallible, Response = S>,
<M as Service<IncomingStream<'a>>>::Future: for<'a> Send,
S: Service<Request<Body>, Response = Response<Body>, Error = Infallible> + Clone + Send + 'static,
<S as Service<Request<Body>>>::Future: Send,
F: Future<Output = ()> + Send + 'static,
§type IntoFuture = ServeFuture
type IntoFuture = ServeFuture
Which kind of future are we turning this into?
§fn into_future(
self
) -> <WithGracefulShutdown<M, S, F> as IntoFuture>::IntoFuture
fn into_future( self ) -> <WithGracefulShutdown<M, S, F> as IntoFuture>::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<M, S, F> !Freeze for WithGracefulShutdown<M, S, F>
impl<M, S, F> RefUnwindSafe for WithGracefulShutdown<M, S, F>
impl<M, S, F> Send for WithGracefulShutdown<M, S, F>
impl<M, S, F> Sync for WithGracefulShutdown<M, S, F>
impl<M, S, F> Unpin for WithGracefulShutdown<M, S, F>
impl<M, S, F> UnwindSafe for WithGracefulShutdown<M, S, F>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more