Struct actix_web::Reply
[−]
[src]
pub struct Reply<A: Actor + Route>(_);
Represents response process.
Methods
impl<A> Reply<A> where
A: Actor + Route,
[src]
A: Actor + Route,
fn async(act: A) -> RouteResult<A>
[src]
Create async response
fn reply<R: Into<HttpResponse>>(response: R) -> RouteResult<A>
[src]
Send response
fn into(self, ctx: HttpContext<A>) -> Task where
A: Actor<Context = HttpContext<A>>,
[src]
A: Actor<Context = HttpContext<A>>,
Trait Implementations
impl<A, T> From<T> for Reply<A> where
T: Into<HttpResponse>,
A: Actor + Route,
[src]
T: Into<HttpResponse>,
A: Actor + Route,