pub type Result<T, E = Error> = Result<T, E>;Expand description
Represents either success (Ok) or failure (Err).
Aliased Type§
pub enum Result<T, E = Error> {
Ok(T),
Err(E),
}Variants§
Trait Implementations§
Source§impl<T, E> IntoResponse for Result<T, E>where
T: IntoResponse,
E: IntoResponse,
impl<T, E> IntoResponse for Result<T, E>where
T: IntoResponse,
E: IntoResponse,
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Convert self to HTTP
Response.Source§fn into_error(self) -> Error
fn into_error(self) -> Error
Convert self to the
Error.