Skip to main content

FileSourceExt

Trait FileSourceExt 

Source
pub trait FileSourceExt: FileSource {
    // Provided method
    fn request(
        &self,
        resource: &Resource,
        callback: impl FnMut(Response) + Send + 'static,
    ) -> Request { ... }
}
Expand description

Requests through a FileSource.

Provided Methods§

Source

fn request( &self, resource: &Resource, callback: impl FnMut(Response) + Send + 'static, ) -> Request

Requests resource. callback receives the responses on the threads that send them (see Request), until the request drops.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§