Trait nuclear::response::Responder[][src]

pub trait Responder: Send + Sync {
    type Future: Future<Output = Result<Response>> + Send;
    fn respond(self) -> Self::Future;
}

Associated Types

Loading content...

Required methods

fn respond(self) -> Self::Future[src]

Loading content...

Implementations on Foreign Types

impl Responder for ()[src]

type Future = Ready<Result<Response>>

fn respond(self) -> Self::Future[src]

impl<'a> Responder for &'a str[src]

type Future = Ready<Result<Response>>

fn respond(self) -> Self::Future[src]

impl Responder for Box<str>[src]

type Future = Ready<Result<Response>>

fn respond(self) -> Self::Future[src]

impl Responder for String[src]

type Future = Ready<Result<Response>>

fn respond(self) -> Self::Future[src]

Loading content...

Implementors

impl Responder for NotFound[src]

type Future = Ready<Result<Response>>

fn respond(self) -> Self::Future[src]

impl Responder for Response[src]

type Future = Ready<Result<Response>>

fn respond(self) -> Self::Future[src]

impl<T> Responder for Json<T> where
    T: Serialize + Send + Sync
[src]

type Future = Ready<Result<Response>>

fn respond(self) -> Self::Future[src]

impl<T, E> Responder for Result<T, E> where
    T: Responder,
    E: Into<Error> + Send + Sync
[src]

type Future = Either<T::Future, Ready<Result<Response>>>

fn respond(self) -> Self::Future[src]

Loading content...