Struct async_fetcher::Fetcher
source · [−]pub struct Fetcher { /* private fields */ }
Expand description
An asynchronous file fetcher for clients fetching files.
The futures generated by the fetcher are compatible with single and multi-threaded runtimes, allowing you to choose between the runtime that works best for your application. A single-threaded runtime is generally recommended for fetching files, as your network connection is unlikely to be faster than a single CPU core.
Implementations
When set, cancels any active operations.
The number of concurrent connections to sustain per file being fetched.
The number of attempts to make when a request fails.
The maximum size of a part file when downloading in parts.
The time to wait between chunks before giving up.
Holds a sender for submitting events to.
Build a stream that will perform fetches when polled.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Fetcher
impl !UnwindSafe for Fetcher
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more