pub struct Header { /* private fields */ }Expand description
Parsed metadata for a tar header.
Implementations§
Source§impl Header
impl Header
Sourcepub fn new_gnu(entry_type: EntryType) -> Self
pub fn new_gnu(entry_type: EntryType) -> Self
Creates a deterministic GNU-format header for entry_type.
Numeric fields default to zero. Callers must set the entry size before
appending regular-file data. Paths and checksums are populated by
Builder.
Sourcepub const fn stored_size(&self) -> u64
pub const fn stored_size(&self) -> u64
Raw stored size before sparse expansion.
Sourcepub const fn set_size(&mut self, size: u64)
pub const fn set_size(&mut self, size: u64)
Sets the number of data bytes that follow the header.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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