Skip to main content

GenericContexts

Trait GenericContexts 

Source
pub trait GenericContexts<T> {
    // Required methods
    fn expected_error(self) -> Result<T, ProcessError>;
    fn internal_error(self) -> Result<T, ProcessError>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, E> GenericContexts<T> for Result<T, E>
where E: Error + Any,

Source§

impl<T> GenericContexts<T> for Option<T>

Implementors§