Skip to main content

ConfigurationFetch

Trait ConfigurationFetch 

Source
pub trait ConfigurationFetch: MaybeSend + MaybeSync {
    // Required methods
    fn fetch<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<GetConfigurationResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn backend_url(&self) -> Option<&str>;
}
Expand description

Restricted access to the credential-free configuration RPC. The hook cannot use this capability to send the operation it is checking.

Required Methods§

Source

fn fetch<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<GetConfigurationResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn backend_url(&self) -> Option<&str>

Implementors§