pub struct StoreInfo {
pub shadow_copy_id: [u8; 16],
pub shadow_copy_set_id: [u8; 16],
pub snapshot_context: u32,
pub attributes: AttributeFlags,
pub operating_machine: String,
pub service_machine: String,
}Expand description
The decoded store information record (identity + attributes of a snapshot).
Fields§
§shadow_copy_id: [u8; 16]Shadow-copy identifier GUID.
shadow_copy_set_id: [u8; 16]Shadow-copy set identifier GUID.
snapshot_context: u32Snapshot context (backup type).
attributes: AttributeFlagsAttribute flags.
operating_machine: StringOperating machine string (UTF-16LE on disk).
service_machine: StringService machine string (UTF-16LE on disk).
Implementations§
Source§impl StoreInfo
impl StoreInfo
Sourcepub fn shadow_copy_id_string(&self) -> String
pub fn shadow_copy_id_string(&self) -> String
The shadow-copy identifier rendered as a canonical GUID string.
Sourcepub fn shadow_copy_set_id_string(&self) -> String
pub fn shadow_copy_set_id_string(&self) -> String
The shadow-copy set identifier rendered as a canonical GUID string.
Sourcepub fn parse(buf: &[u8]) -> Self
pub fn parse(buf: &[u8]) -> Self
Parse store information from the bytes directly following the store block header.
The two machine strings are length-prefixed UTF-16LE runs; every offset and length is bounds-checked, so a truncated or lying length yields an empty string rather than a panic or out-of-bounds read.
Trait Implementations§
impl Eq for StoreInfo
impl StructuralPartialEq for StoreInfo
Auto Trait Implementations§
impl Freeze for StoreInfo
impl RefUnwindSafe for StoreInfo
impl Send for StoreInfo
impl Sync for StoreInfo
impl Unpin for StoreInfo
impl UnsafeUnpin for StoreInfo
impl UnwindSafe for StoreInfo
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