Result

Type Alias Result 

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

A specialized Result type for Parcode operations.

This type alias is used throughout the library to simplify error handling. It is equivalent to std::result::Result<T, ParcodeError>.

§Examples

use parcode::Result;

fn my_function() -> Result<i32> {
    Ok(42)
}

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ParcodeError)

Contains the error value