Skip to main content

LayerCapture

Trait LayerCapture 

Source
pub trait LayerCapture: Send + Sync {
    // Required methods
    fn kind(&self) -> LayerKind;
    fn capture(&self, store: &PfStore) -> Result<LayerDescriptor>;
}
Expand description

One layer’s contribution to a snapshot. Implementations capture their live state, write blobs into the supplied store, and return a typed descriptor suitable for Manifest embedding.

Required Methods§

Source

fn kind(&self) -> LayerKind

Strongly-typed descriptor enum naming the four layer kinds.

Source

fn capture(&self, store: &PfStore) -> Result<LayerDescriptor>

Run the capture, returning a layer descriptor.

Implementors§