Skip to main content

Result

Type Alias Result 

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

Shorthand result type used throughout the vyre public API.

All fallible vyre operations return Result<T> so that callers only need to learn one error representation. The unified type ensures that a frontend emitting bad IR, a backend hitting an adapter limit, or a wire-format decoder seeing truncated bytes all produce the same top-level failure.

Aliased Type§

pub 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