[][src]Struct tide::Server

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

An instantiated Tide server.

This type is useful only in conjunction with the HttpService trait, i.e. for hosting a Tide app within some custom HTTP server.

Trait Implementations

impl<State: Clone> Clone for Server<State>[src]

impl<State: Sync + Send + 'static> HttpService for Server<State>[src]

type Connection = ()

An individual connection. Read more

type ConnectionFuture = Ready<Result<(), Error>>

A future for setting up an individual connection. Read more

type ResponseFuture = BoxFuture<'static, Result<Response, Error>>

The async computation for producing the response. Read more

Auto Trait Implementations

impl<State> Send for Server<State> where
    State: Send + Sync

impl<State> Sync for Server<State> where
    State: Send + Sync

impl<State> Unpin for Server<State>

impl<State> !UnwindSafe for Server<State>

impl<State> !RefUnwindSafe for Server<State>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<F, R> HttpService for F where
    F: Send + Sync + 'static + Fn(Request<Body>) -> R,
    R: Send + 'static + TryFuture<Ok = Response<Body>>,
    <R as TryFuture>::Error: Send
[src]

type Connection = ()

An individual connection. Read more

type ConnectionFuture = Ready<Result<(), <R as TryFuture>::Error>>

A future for setting up an individual connection. Read more

type ResponseFuture = R

The async computation for producing the response. Read more

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,