Struct actix_web::httpcodes::StaticResponse
[−]
[src]
pub struct StaticResponse(_);
Methods
impl StaticResponse
[src]
pub fn build(&self) -> HttpResponseBuilder
[src]
pub fn with_reason(self, reason: &'static str) -> HttpResponse
[src]
pub fn with_body<B: Into<Body>>(self, body: B) -> HttpResponse
[src]
Trait Implementations
impl Copy for StaticResponse
[src]
impl Clone for StaticResponse
[src]
fn clone(&self) -> StaticResponse
[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 Debug for StaticResponse
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S> Handler<S> for StaticResponse
[src]
type Result = HttpResponse
The type of value that handler will return.
fn handle(&mut self, _: HttpRequest<S>) -> HttpResponse
[src]
Handle request
impl Responder for StaticResponse
[src]
type Item = HttpResponse
The associated item which can be returned.
type Error = HttpError
The associated error which can be returned.
fn respond_to(self, _: HttpRequest) -> Result<HttpResponse, HttpError>
[src]
Convert itself to Reply
or Error
.
impl From<StaticResponse> for HttpResponse
[src]
fn from(st: StaticResponse) -> Self
[src]
Performs the conversion.
impl From<StaticResponse> for Reply
[src]
fn from(st: StaticResponse) -> Self
[src]
Performs the conversion.