pub struct FetchedState {
    pub future: Box<dyn Future<Item = Option<Option<FileTime>>, Error = FetchError> + Send>,
    pub download_location: Arc<Path>,
    pub final_destination: Arc<Path>,
    /* private fields */
}
Expand description

This state manages renaming to the destination, and setting the timestamp of the fetched file.

Fields

future: Box<dyn Future<Item = Option<Option<FileTime>>, Error = FetchError> + Send>download_location: Arc<Path>final_destination: Arc<Path>

Implementations

Apply a Digest-able hash method to the downloaded file, and compare the checksum to the given input.

Replaces and renames the fetched file, then sets the file times.

Processes the fetched file, storing the output to the destination, then setting the file times.

Use this to decompress an archive if the fetched file was an archive.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.