Skip to main content

FetchedLayer

Type Alias FetchedLayer 

Source
pub type FetchedLayer<'a> = (Box<dyn AsyncBufRead + Send + Unpin>, BoxFuture<'a, Result<()>>, MediaType);
Expand description

A layer opened for reading: its bytes, a driver future which must be polled alongside reading them, and the media type of those bytes. The media type is not necessarily the one in the layer descriptor, as some transports store layers uncompressed regardless of what the manifest says.