pub struct ArchiveHeader {
pub version: u32,
pub flags: u32,
pub from_generation: u64,
pub to_generation: u64,
pub base_prefix_sha256: [u8; 32],
pub segments: Vec<Segment>,
pub payload_start: u64,
}Expand description
The header, as read back.
Fields§
§version: u32§flags: u32§from_generation: u64§to_generation: u64§base_prefix_sha256: [u8; 32]§segments: Vec<Segment>§payload_start: u64Byte offset in the file where the first payload starts.
Trait Implementations§
Source§impl Clone for ArchiveHeader
impl Clone for ArchiveHeader
Source§impl Debug for ArchiveHeader
impl Debug for ArchiveHeader
impl Eq for ArchiveHeader
Source§impl PartialEq for ArchiveHeader
impl PartialEq for ArchiveHeader
impl StructuralPartialEq for ArchiveHeader
Auto Trait Implementations§
impl Freeze for ArchiveHeader
impl RefUnwindSafe for ArchiveHeader
impl Send for ArchiveHeader
impl Sync for ArchiveHeader
impl Unpin for ArchiveHeader
impl UnsafeUnpin for ArchiveHeader
impl UnwindSafe for ArchiveHeader
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.