Skip to main content

ProviderAuth

Trait ProviderAuth 

Source
pub trait ProviderAuth: Send + Sync {
    // Required methods
    fn headers<'life0, 'life1, 'async_trait>(
        &'life0 self,
        request: ProviderAuthRequest<'life1>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, String)>, AgentLoopError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn as_any(&self) -> &(dyn Any + 'static);
}
Expand description

Resolves authentication for each outbound provider request.

Required Methods§

Source

fn headers<'life0, 'life1, 'async_trait>( &'life0 self, request: ProviderAuthRequest<'life1>, ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, String)>, AgentLoopError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Source

fn as_any(&self) -> &(dyn Any + 'static)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§