Trait viz_core::IntoResponse
source · [−]pub trait IntoResponse: Sized {
fn into_response(self) -> Response;
fn into_error(self) -> Error { ... }
}
Required Methods
fn into_response(self) -> Response
Provided Methods
fn into_error(self) -> Error
Implementations on Foreign Types
sourceimpl IntoResponse for Error
impl IntoResponse for Error
fn into_response(self) -> Response
sourceimpl IntoResponse for Infallible
impl IntoResponse for Infallible
fn into_response(self) -> Response
sourceimpl IntoResponse for String
impl IntoResponse for String
fn into_response(self) -> Response
sourceimpl IntoResponse for &'static str
impl IntoResponse for &'static str
fn into_response(self) -> Response
sourceimpl IntoResponse for &'static [u8]
impl IntoResponse for &'static [u8]
fn into_response(self) -> Response
sourceimpl IntoResponse for Vec<u8>
impl IntoResponse for Vec<u8>
fn into_response(self) -> Response
sourceimpl<T> IntoResponse for Option<T> where
T: IntoResponse,
impl<T> IntoResponse for Option<T> where
T: IntoResponse,
fn into_response(self) -> Response
sourceimpl IntoResponse for ()
impl IntoResponse for ()
fn into_response(self) -> Response
sourceimpl<T> IntoResponse for (StatusCode, T) where
T: IntoResponse,
impl<T> IntoResponse for (StatusCode, T) where
T: IntoResponse,
fn into_response(self) -> Response
Implementors
impl IntoResponse for viz_core::Error
impl IntoResponse for CookiesError
impl IntoResponse for HeaderError
impl IntoResponse for MultipartError
impl IntoResponse for ParamsError
impl IntoResponse for PayloadError
impl IntoResponse for WebSocketError
impl IntoResponse for StatusCode
impl IntoResponse for WebSocket
impl IntoResponse for Response
impl<S> IntoResponse for Sse<S> where
S: Stream<Item = Event> + Send + 'static,
impl<T> IntoResponse for Json<T> where
T: Serialize,
Responds with JSON Data.