CbResult

Type Alias CbResult 

pub type CbResult<T> = Result<T, Cancelled>;
Expand description

The return type used by the callback functions defined in the FapiCallbacks trait.

A callback function returns a CbResult<T> where the type T is specific to the individual callback function.

The application may return Err(Cancelled), if the operation was cancelled.

Otherwise, if the operation proceeds, the application shall return Ok(value) where value is the callback-specific result.

Aliased Type§

pub enum CbResult<T> {
    Ok(T),
    Err(Cancelled),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Cancelled)

Contains the error value