pub type Result<T> = Result<T, HooksError>;
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.
Result<T>
T
fn register_hook(&mut self, hook: Hook) -> Result<String> { // ... implementation ... Ok(hook_id) }
pub enum Result<T> { Ok(T), Err(HooksError), }
Contains the success value
Contains the error value