AsyncEngineContextProvider

Trait AsyncEngineContextProvider 

Source
pub trait AsyncEngineContextProvider: Send + Debug {
    // Required method
    fn context(&self) -> Arc<dyn AsyncEngineContext>;
}
Expand description

Provides access to the AsyncEngineContext associated with an engine operation.

This trait is implemented by both unary and streaming engine results, allowing uniform access to context information regardless of the operation type.

Required Methods§

Implementations on Foreign Types§

Source§

impl<T: Data> AsyncEngineContextProvider for Pin<Box<dyn AsyncEngineStream<T>>>

Source§

impl<T: Data> AsyncEngineContextProvider for Pin<Box<dyn AsyncEngineUnary<T>>>

Implementors§