[−][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<AppData: Clone> Clone for Server<AppData>
[src]
fn clone(&self) -> Server<AppData>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<AppData: Sync + Send + 'static> HttpService for Server<AppData>
[src]
type Connection = ()
An individual connection. Read more
type ConnectionFuture = Ready<Result<(), Error>>
A future for setting up an individual connection. Read more
type Fut = 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::Fut
[src]
Auto Trait Implementations
impl<AppData> Send for Server<AppData> where
AppData: Send + Sync,
AppData: Send + Sync,
impl<AppData> Sync for Server<AppData> where
AppData: Send + Sync,
AppData: Send + Sync,
Blanket Implementations
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> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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 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 for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut 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, Fut> HttpService for F where
F: Send + Sync + 'static + Fn(Request<Body>) -> Fut,
Fut: Send + 'static + TryFuture<Ok = Response<Body>>,
<Fut as TryFuture>::Error: Send,
[src]
F: Send + Sync + 'static + Fn(Request<Body>) -> Fut,
Fut: Send + 'static + TryFuture<Ok = Response<Body>>,
<Fut as TryFuture>::Error: Send,
type Connection = ()
An individual connection. Read more
type ConnectionFuture = Ready<Result<(), <Fut as TryFuture>::Error>>
A future for setting up an individual connection. Read more
fn connect(&self) -> <F as HttpService>::ConnectionFuture
[src]
type Fut = Fut
The async computation for producing the response. Read more