Skip to main content

Result

Type Alias Result 

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

A specialized Result type for encoding and decoding functions which may produce errors.

This typedef is a convenience to avoid repetitively specifying Error as the error type, and is a direct mapping to a core::result::Result with an Err type of Error.

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