pub struct Serve<Client, Propagator, BackoffType> { /* private fields */ }
Implementations§
Source§impl<Client, Propagator, BackoffType> Serve<Client, Propagator, BackoffType>
impl<Client, Propagator, BackoffType> Serve<Client, Propagator, BackoffType>
pub const fn new( dispatcher: Dispatcher<Client, Propagator, BackoffType>, ) -> Self
pub fn with_graceful_shutdown<Signal>( self, signal: Signal, ) -> ServeWithGracefulShutdown<Client, Propagator, BackoffType, Signal>
Trait Implementations§
Source§impl<Client, Propagator, BackoffType> IntoFuture for Serve<Client, Propagator, BackoffType>
impl<Client, Propagator, BackoffType> IntoFuture for Serve<Client, Propagator, BackoffType>
Source§type IntoFuture = Pin<Box<dyn Future<Output = <Serve<Client, Propagator, BackoffType> as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <Serve<Client, Propagator, BackoffType> as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<Client, Propagator, BackoffType> Freeze for Serve<Client, Propagator, BackoffType>
impl<Client, Propagator, BackoffType> !RefUnwindSafe for Serve<Client, Propagator, BackoffType>
impl<Client, Propagator, BackoffType> Send for Serve<Client, Propagator, BackoffType>
impl<Client, Propagator, BackoffType> Sync for Serve<Client, Propagator, BackoffType>
impl<Client, Propagator, BackoffType> Unpin for Serve<Client, Propagator, BackoffType>
impl<Client, Propagator, BackoffType> !UnwindSafe for Serve<Client, Propagator, BackoffType>
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