Skip to main content

ErasedContextProvider

Trait ErasedContextProvider 

Source
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§

Source

fn name(&self) -> &'static str

Source

fn scope(&self) -> TemporalScope

Source

fn schema(&self) -> Schema

Source

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,

Source

fn subscribe(&self) -> Option<Receiver<()>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§