[−][src]Struct display_as::As
Methods
impl<'a, F: Format, T: DisplayAs<F>> As<'a, F, T>
[src]
pub fn http_response(&self) -> Response<String>
[src]
Convert into a [warp::Reply].
Trait Implementations
impl<'a, F: Format, T: DisplayAs<F>> Into<Response> for As<'a, F, T>
[src]
impl<'a, F: Format, T: DisplayAs<F> + ?Sized> From<&'a T> for As<'a, F, T>
[src]
impl<'a, F: Format, T: DisplayAs<F> + ?Sized> Display for As<'a, F, T>
[src]
impl<'a, F: Format, T: 'a + DisplayAs<F>> Responder for As<'a, F, T>
[src]
type Item = HttpResponse
The associated item which can be returned.
type Error = Error
The associated error which can be returned.
fn respond_to<S: 'static>(
self,
_req: &HttpRequest<S>
) -> Result<HttpResponse, Self::Error>
[src]
self,
_req: &HttpRequest<S>
) -> Result<HttpResponse, Self::Error>
impl<'a, F: Format, T: 'a + DisplayAs<F>> IntoResponse for As<'a, F, T>
[src]
fn into_response(self, state: &State) -> Response<Body>
[src]
Auto Trait Implementations
impl<'a, F, T: ?Sized> Send for As<'a, F, T> where
F: Send,
T: Sync,
F: Send,
T: Sync,
impl<'a, F, T: ?Sized> Sync for As<'a, F, T> where
F: Sync,
T: Sync,
F: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,