pub struct Server<L, S = Pending<()>> { /* private fields */ }Expand description
A listening HTTP server that accepts connections.
Implementations§
Source§impl<L> Server<L>
impl<L> Server<L>
Sourcepub fn with_builder(
listener: L,
router: Router,
builder: Builder<TokioExecutor>,
) -> Self
pub fn with_builder( listener: L, router: Router, builder: Builder<TokioExecutor>, ) -> Self
Trait Implementations§
Source§impl<L, S> IntoFuture for Server<L, S>
impl<L, S> IntoFuture for Server<L, S>
Source§type IntoFuture = Pin<Box<dyn Future<Output = <Server<L, S> as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <Server<L, S> 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<L, S> Freeze for Server<L, S>
impl<L, S = Pending<()>> !RefUnwindSafe for Server<L, S>
impl<L, S> Send for Server<L, S>
impl<L, S> Sync for Server<L, S>
impl<L, S> Unpin for Server<L, S>
impl<L, S = Pending<()>> !UnwindSafe for Server<L, S>
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