Trait hyper_static_server::ResponseExtBuild[][src]

pub trait ResponseExtBuild<B> where
    B: Body
{ pub fn new_with_status_and_body(
        _status: StatusCode,
        _content_type: Option<impl Into<HeaderValue>>,
        _body: impl Into<B>
    ) -> Self; pub fn new_empty() -> Self
    where
        B: Default
, { ... }
pub fn new_200_with_body(
        _content_type: Option<impl Into<HeaderValue>>,
        _body: impl Into<B>
    ) -> Self { ... }
pub fn new_200_with_text(_body: impl Into<B>) -> Self { ... }
pub fn new_200_with_html(_body: impl Into<B>) -> Self { ... }
pub fn new_200() -> Self
    where
        B: From<&'static str>
, { ... }
pub fn new_404() -> Self
    where
        B: From<&'static str>
, { ... }
pub fn new_method_not_allowed() -> Self
    where
        B: From<&'static str>
, { ... }
pub fn ok<E>(self) -> Result<Self, E> { ... }
pub fn ok_0(self) -> Result<Self, Error> { ... }
pub fn ready<E>(self) -> Ready<Result<Self, E>>

Notable traits for Ready<T>

impl<T> Future for Ready<T> type Output = T;
{ ... }
pub fn ready_0(self) -> Ready<Result<Self, Error>>

Notable traits for Ready<T>

impl<T> Future for Ready<T> type Output = T;
{ ... } }

Required methods

pub fn new_with_status_and_body(
    _status: StatusCode,
    _content_type: Option<impl Into<HeaderValue>>,
    _body: impl Into<B>
) -> Self
[src]

Loading content...

Provided methods

pub fn new_empty() -> Self where
    B: Default
[src]

pub fn new_200_with_body(
    _content_type: Option<impl Into<HeaderValue>>,
    _body: impl Into<B>
) -> Self
[src]

pub fn new_200_with_text(_body: impl Into<B>) -> Self[src]

pub fn new_200_with_html(_body: impl Into<B>) -> Self[src]

pub fn new_200() -> Self where
    B: From<&'static str>, 
[src]

pub fn new_404() -> Self where
    B: From<&'static str>, 
[src]

pub fn new_method_not_allowed() -> Self where
    B: From<&'static str>, 
[src]

pub fn ok<E>(self) -> Result<Self, E>[src]

pub fn ok_0(self) -> Result<Self, Error>[src]

pub fn ready<E>(self) -> Ready<Result<Self, E>>

Notable traits for Ready<T>

impl<T> Future for Ready<T> type Output = T;
[src]

pub fn ready_0(self) -> Ready<Result<Self, Error>>

Notable traits for Ready<T>

impl<T> Future for Ready<T> type Output = T;
[src]

Loading content...

Implementors

impl ResponseExtBuild<Body> for Response<Body>[src]

Loading content...