Type Alias GnsResult

Source
pub type GnsResult<T> = Result<T, EResult>;
Expand description

Outcome of many functions from this library, basic type alias with steam [sys::EResult] as error. If the result is [sys::EResult::k_EResultOK], the value can safely be wrapped, otherwise we return the error.

Aliased Type§

enum GnsResult<T> {
    Ok(T),
    Err(EResult),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(EResult)

Contains the error value

Trait Implementations§

Source§

impl From<GnsError> for GnsResult<()>

Source§

fn from(GnsError: GnsError) -> Self

Converts to this type from the input type.