Skip to main content

ProviderControl

Trait ProviderControl 

Source
pub trait ProviderControl: Send + Sync {
    // Required methods
    fn initialize<'a>(
        &'a self,
        config: &'a AuthConfig,
        context: ChildServiceContext,
    ) -> ProviderFuture<'a, ()>;
    fn flush(&self) -> ProviderFuture<'_, ()>;
    fn close(&self) -> ProviderFuture<'_, ()>;
}
Expand description

Lifecycle control owned once by the runtime, separate from concurrent data ports.

Required Methods§

Source

fn initialize<'a>( &'a self, config: &'a AuthConfig, context: ChildServiceContext, ) -> ProviderFuture<'a, ()>

Source

fn flush(&self) -> ProviderFuture<'_, ()>

Source

fn close(&self) -> ProviderFuture<'_, ()>

Closes resources idempotently, including a partially initialized provider.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§