pub struct IndexFileReader<'a> {
    pub reader: Pin<Box<dyn AsyncRead + Send + 'a>>,
    pub compression: Compression,
    pub directory: String,
    pub filename: String,
}
Expand description

Describes an index file to write.

Fields

reader: Pin<Box<dyn AsyncRead + Send + 'a>>

Provides the uncompressed content of the file.

compression: Compression

The compression to apply to the written file.

directory: String

The directory the index file is based in.

filename: String

The filename of the index file (without the compression suffix).

Implementations

Obtain the canonical path of this entry as it would appear in an [In]Release file.

Obtain the by-hash path given a ContentDigest.

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

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