Struct tsukuyomi::app::service::AppService [−][src]
pub struct AppService { /* fields omitted */ }
A Service
representation of the application, created by App
.
Trait Implementations
impl Debug for AppService
[src]
impl Debug for AppService
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Service for AppService
[src]
impl Service for AppService
type ReqBody = Body
The Payload
body of the http::Request
.
type ResBody = Body
The Payload
body of the http::Response
.
type Error = CritError
The error type that can occur within this `Service. Read more
type Future = AppServiceFuture
The Future
returned by this Service
.
fn call(&mut self, request: Request<Self::ReqBody>) -> Self::Future
[src]
fn call(&mut self, request: Request<Self::ReqBody>) -> Self::Future
Calls this Service
with a request, returning a Future
of the response.
impl ServiceUpgradeExt<Io> for AppService
[src]
impl ServiceUpgradeExt<Io> for AppService
type Upgrade = AppServiceUpgrade
A future returned from into_upgrade
, representing an asynchronous computation after upgrading to another protocol. Read more
type UpgradeError = CritError
The type of error which will be returned from poll_ready_upgradable
.
fn poll_ready_upgradable(&mut self) -> Poll<(), Self::UpgradeError>
[src]
fn poll_ready_upgradable(&mut self) -> Poll<(), Self::UpgradeError>
Polls if this service is upgradable.
fn upgrade(self, io: Io, read_buf: Bytes) -> Self::Upgrade
[src]
fn upgrade(self, io: Io, read_buf: Bytes) -> Self::Upgrade
Perform the upgrading to another protocol with the provided components. Read more
Auto Trait Implementations
impl Send for AppService
impl Send for AppService
impl !Sync for AppService
impl !Sync for AppService