[−][src]Struct tide::Server
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
fn connect(&self) -> Self::ConnectionFuture
[src]
fn respond(&self, _conn: &mut (), req: Request) -> Self::ResponseFuture
[src]
Auto Trait Implementations
impl<State> Send for Server<State> where
State: Send + Sync,
State: Send + Sync,
impl<State> Sync for Server<State> where
State: Send + Sync,
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]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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]
F: Send + Sync + 'static + Fn(Request<Body>) -> R,
R: Send + 'static + TryFuture<Ok = Response<Body>>,
<R as TryFuture>::Error: Send,
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
fn connect(&self) -> <F as HttpService>::ConnectionFuture
[src]
type ResponseFuture = R
The async computation for producing the response. Read more
fn respond(
&self,
&mut (),
req: Request<Body>
) -> <F as HttpService>::ResponseFuture
[src]
&self,
&mut (),
req: Request<Body>
) -> <F as HttpService>::ResponseFuture
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,