pub type Result<T> = Result<T, HyperlightError>;
Expand description
The universal Result
type used throughout the Hyperlight codebase.
Aliased Type§
pub enum Result<T> {
Ok(T),
Err(HyperlightError),
}
Variants§
Trait Implementations§
Source§impl ResultType for Result<()>
impl ResultType for Result<()>
Source§type ReturnType = ()
type ReturnType = ()
The return type of the supported return value
Source§fn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a
Result<impl SupportedReturnType>
Source§impl ResultType for Result<String>
impl ResultType for Result<String>
Source§type ReturnType = String
type ReturnType = String
The return type of the supported return value
Source§fn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a
Result<impl SupportedReturnType>
Source§impl ResultType for Result<Vec<u8>>
impl ResultType for Result<Vec<u8>>
Source§type ReturnType = Vec<u8>
type ReturnType = Vec<u8>
The return type of the supported return value
Source§fn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a
Result<impl SupportedReturnType>
Source§impl ResultType for Result<bool>
impl ResultType for Result<bool>
Source§type ReturnType = bool
type ReturnType = bool
The return type of the supported return value
Source§fn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a
Result<impl SupportedReturnType>
Source§impl ResultType for Result<f32>
impl ResultType for Result<f32>
Source§type ReturnType = f32
type ReturnType = f32
The return type of the supported return value
Source§fn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a
Result<impl SupportedReturnType>
Source§impl ResultType for Result<f64>
impl ResultType for Result<f64>
Source§type ReturnType = f64
type ReturnType = f64
The return type of the supported return value
Source§fn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a
Result<impl SupportedReturnType>
Source§impl ResultType for Result<i32>
impl ResultType for Result<i32>
Source§type ReturnType = i32
type ReturnType = i32
The return type of the supported return value
Source§fn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a
Result<impl SupportedReturnType>
Source§impl ResultType for Result<i64>
impl ResultType for Result<i64>
Source§type ReturnType = i64
type ReturnType = i64
The return type of the supported return value
Source§fn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a
Result<impl SupportedReturnType>
Source§impl ResultType for Result<u32>
impl ResultType for Result<u32>
Source§type ReturnType = u32
type ReturnType = u32
The return type of the supported return value
Source§fn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a
Result<impl SupportedReturnType>
Source§impl ResultType for Result<u64>
impl ResultType for Result<u64>
Source§type ReturnType = u64
type ReturnType = u64
The return type of the supported return value
Source§fn into_result(self) -> Result<Self::ReturnType>
fn into_result(self) -> Result<Self::ReturnType>
Convert the return type into a
Result<impl SupportedReturnType>