pub struct SnapHeader {
pub magic: u32,
pub version: u32,
pub layout_hash: u32,
pub flags: u32,
}Expand description
Snapshot image header. (b2SnapHeader)
Fields§
§magic: u32§version: u32§layout_hash: u32§flags: u32Implementations§
Source§impl SnapHeader
impl SnapHeader
pub const SIZE: usize = 16
Sourcepub fn current() -> SnapHeader
pub fn current() -> SnapHeader
Header for an image produced by this build.
pub fn write(&self, buf: &mut Vec<u8>)
Sourcepub fn is_compatible(&self) -> bool
pub fn is_compatible(&self) -> bool
True when an image with this header can be restored by this build. The validation flag is diagnostic only, exactly like C.
Trait Implementations§
Source§impl Clone for SnapHeader
impl Clone for SnapHeader
Source§fn clone(&self) -> SnapHeader
fn clone(&self) -> SnapHeader
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 moreimpl Copy for SnapHeader
Source§impl Debug for SnapHeader
impl Debug for SnapHeader
impl Eq for SnapHeader
Source§impl PartialEq for SnapHeader
impl PartialEq for SnapHeader
impl StructuralPartialEq for SnapHeader
Auto Trait Implementations§
impl Freeze for SnapHeader
impl RefUnwindSafe for SnapHeader
impl Send for SnapHeader
impl Sync for SnapHeader
impl Unpin for SnapHeader
impl UnsafeUnpin for SnapHeader
impl UnwindSafe for SnapHeader
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