[][src]Struct tide::server::Service

pub struct Service<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 Service<State>[src]

impl<State: Sync + Send + 'static, InnerState: Sync + Send + 'static> Endpoint<State> for Service<InnerState>[src]

type Fut = Pin<Box<dyn Future<Output = Response> + Send + 'static>>

The async result of call.

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

type Connection = ()

An individual connection. Read more

type ConnectionFuture = ReadyFuture

A future for setting up an individual connection. Read more

type ResponseFuture = Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'static>>

The async computation for producing the response. Read more

Auto Trait Implementations

impl<State> !RefUnwindSafe for Service<State>

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

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

impl<State> Unpin for Service<State>

impl<State> !UnwindSafe for Service<State>

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.