Skip to main content

EffectCheck

Trait EffectCheck 

Source
pub trait EffectCheck: Send + 'static {
    // Required method
    fn with_effect<R>(
        &self,
        effect: impl FnOnce() -> Result<R, String>,
    ) -> Result<R, String>;
}

Required Methods§

Source

fn with_effect<R>( &self, effect: impl FnOnce() -> Result<R, String>, ) -> Result<R, String>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§