[−][src]Struct tide::server::Service
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
.
fn call(&self, req: Request<State>) -> Self::Fut
[src]
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
fn connect(&self) -> Self::ConnectionFuture
[src]
fn respond(&self, _conn: &mut (), req: Request) -> Self::ResponseFuture
[src]
Auto Trait Implementations
impl<State> !RefUnwindSafe for Service<State>
impl<State> Send for Service<State> where
State: Send + Sync,
State: Send + Sync,
impl<State> Sync for Service<State> where
State: Send + Sync,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,