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§
Sourcefn capture(&self, store: &PfStore) -> Result<LayerDescriptor>
fn capture(&self, store: &PfStore) -> Result<LayerDescriptor>
Run the capture, returning a layer descriptor.