Skip to main content

FetchProvider

Trait FetchProvider 

Source
pub trait FetchProvider:
    Debug
    + Send
    + Sync {
    // Required method
    fn fetch(
        &self,
        request: FetchRequest,
        cancellation: CancellationScope,
    ) -> FetchFuture<'_>;
}
Expand description

Object-safe client web-fetch backend port.

Required Methods§

Source

fn fetch( &self, request: FetchRequest, cancellation: CancellationScope, ) -> FetchFuture<'_>

Executes one bounded request with cooperative cancellation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§