Skip to main content

EffectHost

Trait EffectHost 

Source
pub trait EffectHost: Send + Sync {
    // Required method
    fn scoped<'run>(
        &'run self,
        scope: EffectScope,
    ) -> Result<ScopedEffectController<'run>, RuntimeError>;

    // Provided methods
    fn durability_tier(&self) -> DurabilityTier { ... }
    fn requires_durable_attachment_store(&self) -> bool { ... }
    fn scoped_static(
        &self,
        _scope: EffectScope,
    ) -> Result<Option<ScopedEffectController<'static>>, RuntimeError> { ... }
}
Expand description

Deployment-level factory for scoped effect controllers.

Required Methods§

Source

fn scoped<'run>( &'run self, scope: EffectScope, ) -> Result<ScopedEffectController<'run>, RuntimeError>

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§