Skip to main content

Provider

Trait Provider 

Source
pub trait Provider {
    // Required method
    fn complete(&self, req: Request<'_>) -> Result<Response, AskError>;
}
Expand description

A single one-shot call. Sync because every supported provider has a sync HTTPS entry point and ask() itself is sync (matches the engine’s surface — Connection::execute etc. are all sync).

Required Methods§

Source

fn complete(&self, req: Request<'_>) -> Result<Response, AskError>

Implementors§