pub trait ErasedContextProvider:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &'static str;
fn scope(&self) -> TemporalScope;
fn schema(&self) -> Schema;
fn erased_context<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ContextRequest,
) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn subscribe(&self) -> Option<Receiver<()>>;
}Required Methods§
fn name(&self) -> &'static str
fn scope(&self) -> TemporalScope
fn schema(&self) -> Schema
fn erased_context<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ContextRequest,
) -> Pin<Box<dyn Future<Output = Result<Value, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn subscribe(&self) -> Option<Receiver<()>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".