Trait Prefetch

Source
pub trait Prefetch {
    // Required method
    fn prefetch(
        &self,
        url: impl IntoUrl + Send,
    ) -> impl Future<Output = Result<UrlInfo, Error>> + Send;
}

Required Methods§

Source

fn prefetch( &self, url: impl IntoUrl + Send, ) -> impl Future<Output = Result<UrlInfo, Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Prefetch for Client

Source§

async fn prefetch(&self, url: impl IntoUrl + Send) -> Result<UrlInfo, Error>

Implementors§