Struct sse::EchoService
[−]
[src]
pub struct EchoService { /* fields omitted */ }
Methods
impl EchoService
[src]
Trait Implementations
impl Clone for EchoService
[src]
fn clone(&self) -> EchoService
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Service for EchoService
[src]
type Request = Request
Requests handled by the service.
type Response = Response
Responses given by the service.
type Error = Error
Errors produced by the service.
type Future = Box<Future<Item = Self::Response, Error = Self::Error>>
The future response value.
fn call(&self, req: Self::Request) -> Self::Future
[src]
Process the request and return the response asynchronously.