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§
fn initialize<'a>( &'a self, config: &'a AuthConfig, context: ChildServiceContext, ) -> ProviderFuture<'a, ()>
fn flush(&self) -> ProviderFuture<'_, ()>
Sourcefn close(&self) -> ProviderFuture<'_, ()>
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".