Result

Type Alias Result 

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

Result type for hooks operations

This is the standard result type used throughout the hooks system. All public APIs return Result<T> where T is the success type.

§Examples

fn register_hook(&mut self, hook: Hook) -> Result<String> {
    // ... implementation ...
    Ok(hook_id)
}

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(HooksError)

Contains the error value