pub type Result<T, E = Error> = Result<T, E>;Expand description
A alias for std::result::Result that uses Error as the default error type.
This allows functions throughout the crate to return Result<T>
instead of writing out Result<T, Error> explicitly.
Aliased Type§
pub enum Result<T, E = Error> {
Ok(T),
Err(E),
}Variants§
Trait Implementations§
Source§impl<Ok: IntoResponse, Err: Into<Error>> IntoResponse for Result<Ok, Err>
impl<Ok: IntoResponse, Err: Into<Error>> IntoResponse for Result<Ok, Err>
Source§fn into_response(self) -> Result<Response, ErrorCode>
fn into_response(self) -> Result<Response, ErrorCode>
Converts
self into a wasip3::http::types::Response.