pub trait PullVisitor {
type Error;
// Provided methods
fn index(&mut self, _index: ImageIndex<'_>) -> Result<(), Self::Error> { ... }
fn select_manifest(
&mut self,
_descriptor: Descriptor<'_>,
) -> Result<Selection, Self::Error> { ... }
fn manifest(
&mut self,
_manifest: ImageManifest<'_>,
) -> Result<(), Self::Error> { ... }
fn subject(
&mut self,
_descriptor: Descriptor<'_>,
) -> Result<(), Self::Error> { ... }
fn begin_blob(
&mut self,
_kind: BlobKind,
_descriptor: Descriptor<'_>,
) -> Result<BlobAction, Self::Error> { ... }
fn blob_data(
&mut self,
_kind: BlobKind,
_bytes: &[u8],
) -> Result<(), Self::Error> { ... }
fn end_blob(&mut self, _kind: BlobKind) -> Result<(), Self::Error> { ... }
}Expand description
Selects manifests and consumes pull events without retaining graph lists.
Required Associated Types§
Provided Methods§
fn index(&mut self, _index: ImageIndex<'_>) -> Result<(), Self::Error>
fn select_manifest( &mut self, _descriptor: Descriptor<'_>, ) -> Result<Selection, Self::Error>
fn manifest(&mut self, _manifest: ImageManifest<'_>) -> Result<(), Self::Error>
fn subject(&mut self, _descriptor: Descriptor<'_>) -> Result<(), Self::Error>
fn begin_blob( &mut self, _kind: BlobKind, _descriptor: Descriptor<'_>, ) -> Result<BlobAction, Self::Error>
fn blob_data( &mut self, _kind: BlobKind, _bytes: &[u8], ) -> Result<(), Self::Error>
fn end_blob(&mut self, _kind: BlobKind) -> Result<(), Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".