Skip to main content

ServiceContext

Trait ServiceContext 

Source
pub trait ServiceContext: Send + Sync {
    // Required methods
    fn service_base_url(&self) -> String;
    fn list_collections<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Arc<dyn CollectionContext>>, ODataError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn on_unsupported_feature(&self) -> OnUnsupported;
}

Required Methods§

Source

fn service_base_url(&self) -> String

Source

fn list_collections<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Arc<dyn CollectionContext>>, ODataError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn on_unsupported_feature(&self) -> OnUnsupported

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§