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

Constructs a new Fetcher.

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.

Finalizes the fetcher to prepare it for fetch tasks.

Build a stream that will perform fetches when polled.

Request a file from one or more URIs.

At least one URI must be provided as a source for the file. Each additional URI serves as a mirror for failover and load-balancing purposes.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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