pub struct FileSnapshotState {
pub disk_format: SnapshotFormat,
pub filesystem: String,
pub virtual_size: u64,
pub head: DiskLayerId,
pub layers: Vec<DiskLayer>,
}Expand description
Concrete file-backed snapshot state.
Fields§
§disk_format: SnapshotFormatFormat of the head layer.
filesystem: StringFilesystem inside the virtual disk.
virtual_size: u64Guest-visible size of the head layer.
head: DiskLayerIdOpaque identity of the head layer.
layers: Vec<DiskLayer>Complete physical closure, oldest first.
Implementations§
Source§impl FileSnapshotState
impl FileSnapshotState
Sourcepub fn head_layer(&self) -> SnapshotManifestResult<&DiskLayer>
pub fn head_layer(&self) -> SnapshotManifestResult<&DiskLayer>
Return the validated head layer.
Sourcepub fn layer_path(&self, layer: &DiskLayer) -> PathBuf
pub fn layer_path(&self, layer: &DiskLayer) -> PathBuf
Return a layer’s canonical artifact-relative path.
Sourcepub fn state_root(&self) -> SnapshotManifestResult<Option<String>>
pub fn state_root(&self) -> SnapshotManifestResult<Option<String>>
Return a representation-sensitive state root when every layer records integrity.
Trait Implementations§
Source§impl Clone for FileSnapshotState
impl Clone for FileSnapshotState
Source§fn clone(&self) -> FileSnapshotState
fn clone(&self) -> FileSnapshotState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileSnapshotState
impl Debug for FileSnapshotState
Source§impl<'de> Deserialize<'de> for FileSnapshotState
impl<'de> Deserialize<'de> for FileSnapshotState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FileSnapshotState
Source§impl PartialEq for FileSnapshotState
impl PartialEq for FileSnapshotState
Source§impl Serialize for FileSnapshotState
impl Serialize for FileSnapshotState
impl StructuralPartialEq for FileSnapshotState
Auto Trait Implementations§
impl Freeze for FileSnapshotState
impl RefUnwindSafe for FileSnapshotState
impl Send for FileSnapshotState
impl Sync for FileSnapshotState
impl Unpin for FileSnapshotState
impl UnsafeUnpin for FileSnapshotState
impl UnwindSafe for FileSnapshotState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more