pub type HookResult<T, E> = Result<T, Error<E>>;Expand description
Result type for connection hooks.
This is intentionally named HookResult (not Result) to make it clear this is not
std::result::Result. A HookResult can be:
Ok(io)- success, returns the IO streamErr(Error::Io(..))- an I/O error occurredErr(Error::Hook(..))- a hook-specific error occurred
Aliased Type§
pub enum HookResult<T, E> {
Ok(T),
Err(Error<E>),
}