Trait LiquidCacheErrorExt

Source
pub trait LiquidCacheErrorExt<T> {
    // Required method
    fn with_liquid_context(
        self,
        message: impl Into<String>,
    ) -> LiquidCacheResult<T>;
}
Expand description

Extension trait to add context to Results for better error reporting

Required Methods§

Source

fn with_liquid_context(self, message: impl Into<String>) -> LiquidCacheResult<T>

Add context to an error for better error reporting

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T, E> LiquidCacheErrorExt<T> for Result<T, E>
where E: Error + Send + Sync + 'static,

Implementors§