Type Alias ctru::error::Result

source ·
pub type Result<T> = Result<T, Error>;
Expand description

Custom type alias for generic ctru-rs operations.

This type is compatible with ctru_sys::Result codes.

Aliased Type§

enum Result<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

source§

impl<T> FromResidual<Error> for Result<T>

source§

fn from_residual(e: Error) -> Self

🔬This is a nightly-only experimental API. (try_trait_v2)
Constructs the type from a compatible Residual type. Read more