Skip to main content

Result

Type Alias Result 

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

Result type for the managed API. The error is wrapped in whereat::At, which records the source location where the failure surfaced (for server-side logs). The internal decoder hot path uses the separate bare Rav1dError/Rav1dResult types, so this wrapper never enters an inner loop — it only applies at the per-frame managed-API boundary. Match the inner error with err.error() (borrow) or err.decompose().0 (owned).

Aliased Type§

pub enum Result<T, E = At<Error>> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value