Type Alias Result

Source
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§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(HyperlightError)

Contains the error value

Trait Implementations§

Source§

impl ResultType for Result<()>

Source§

type ReturnType = ()

The return type of the supported return value
Source§

fn into_result(self) -> Result<Self::ReturnType>

Convert the return type into a Result<impl SupportedReturnType>
Source§

impl ResultType for Result<String>

Source§

type ReturnType = String

The return type of the supported return value
Source§

fn into_result(self) -> Result<Self::ReturnType>

Convert the return type into a Result<impl SupportedReturnType>
Source§

impl ResultType for Result<Vec<u8>>

Source§

type ReturnType = Vec<u8>

The return type of the supported return value
Source§

fn into_result(self) -> Result<Self::ReturnType>

Convert the return type into a Result<impl SupportedReturnType>
Source§

impl ResultType for Result<bool>

Source§

type ReturnType = bool

The return type of the supported return value
Source§

fn into_result(self) -> Result<Self::ReturnType>

Convert the return type into a Result<impl SupportedReturnType>
Source§

impl ResultType for Result<f32>

Source§

type ReturnType = f32

The return type of the supported return value
Source§

fn into_result(self) -> Result<Self::ReturnType>

Convert the return type into a Result<impl SupportedReturnType>
Source§

impl ResultType for Result<f64>

Source§

type ReturnType = f64

The return type of the supported return value
Source§

fn into_result(self) -> Result<Self::ReturnType>

Convert the return type into a Result<impl SupportedReturnType>
Source§

impl ResultType for Result<i32>

Source§

type ReturnType = i32

The return type of the supported return value
Source§

fn into_result(self) -> Result<Self::ReturnType>

Convert the return type into a Result<impl SupportedReturnType>
Source§

impl ResultType for Result<i64>

Source§

type ReturnType = i64

The return type of the supported return value
Source§

fn into_result(self) -> Result<Self::ReturnType>

Convert the return type into a Result<impl SupportedReturnType>
Source§

impl ResultType for Result<u32>

Source§

type ReturnType = u32

The return type of the supported return value
Source§

fn into_result(self) -> Result<Self::ReturnType>

Convert the return type into a Result<impl SupportedReturnType>
Source§

impl ResultType for Result<u64>

Source§

type ReturnType = u64

The return type of the supported return value
Source§

fn into_result(self) -> Result<Self::ReturnType>

Convert the return type into a Result<impl SupportedReturnType>