Struct warp::Server[][src]

pub struct Server<S> { /* fields omitted */ }

A Warp Server ready to filter requests.

Methods

impl<S> Server<S> where
    S: IntoWarpService + 'static,
    <<S::Service as WarpService>::Reply as Future>::Item: Reply + Send,
    <<S::Service as WarpService>::Reply as Future>::Error: Reject + Send
[src]

Run this Server forever on the current thread.

Bind to a socket address, returning a Future that can be executed on any runtime.

Bind to a possibly ephemeral socket address.

Returns the bound address and a Future that can be executed on any runtime.

Trait Implementations

impl<S: Debug> Debug for Server<S>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S> Send for Server<S> where
    S: Send

impl<S> Sync for Server<S> where
    S: Sync