pub trait Fetcher {
type Error;
// Required methods
async fn manifest(
&mut self,
reference: ManifestReference<'_>,
destination: &mut [u8],
) -> Result<usize, Self::Error>;
async fn blob<S: BlobSink>(
&mut self,
descriptor: Descriptor<'_>,
sink: &mut S,
) -> Result<(), Self::Error>;
}Expand description
Supplies verified registry objects to the transport-independent pull walk.
Implementations must verify manifest digest references and each blob descriptor’s size and digest before returning success.
Required Associated Types§
Required Methods§
async fn manifest( &mut self, reference: ManifestReference<'_>, destination: &mut [u8], ) -> Result<usize, Self::Error>
async fn blob<S: BlobSink>( &mut self, descriptor: Descriptor<'_>, sink: &mut S, ) -> Result<(), Self::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".