pub enum MaybeLock {
    Ready(File),
    Download {
        url: String,
        descriptor: String,
    },
}
Expand description

The status of RegistryData::download which indicates if a .crate file has already been downloaded, or if not then the URL to download.

Variants

Ready(File)

The .crate file is already downloaded. File is a handle to the opened .crate file on the filesystem.

Download

Fields

url: String
descriptor: String

The .crate file is not downloaded, here’s the URL to download it from.

descriptor is just a text string to display to the user of what is being downloaded.

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.