Struct actix_web::Reply
[−]
[src]
pub struct Reply(_);
Represents response process.
Methods
impl Reply
[src]
pub fn async<F>(fut: F) -> Reply where
F: Future<Item = HttpResponse, Error = Error> + 'static,
[src]
F: Future<Item = HttpResponse, Error = Error> + 'static,
Create async response
pub fn response<R: Into<HttpResponse>>(response: R) -> Reply
[src]
Send response
Trait Implementations
impl Responder for Reply
[src]
type Item = Reply
The associated item which can be returned.
type Error = Error
The associated error which can be returned.
fn respond_to(self, _: HttpRequest) -> Result<Reply, Error>
[src]
Convert itself to Reply
or Error
.
impl From<HttpResponse> for Reply
[src]
fn from(resp: HttpResponse) -> Reply
[src]
Performs the conversion.
impl<E: Into<Error>> From<Result<Reply, E>> for Reply
[src]
impl<E: Into<Error>> From<Result<HttpResponse, E>> for Reply
[src]
fn from(res: Result<HttpResponse, E>) -> Self
[src]
Performs the conversion.
impl From<Box<Future<Item = HttpResponse, Error = Error>>> for Reply
[src]
fn from(fut: Box<Future<Item = HttpResponse, Error = Error>>) -> Reply
[src]
Performs the conversion.
impl From<StaticResponse> for Reply
[src]
fn from(st: StaticResponse) -> Self
[src]
Performs the conversion.