pub struct HeaderFrame {
pub position: u64,
pub block: Block,
pub format: ArchiveFormat,
pub kind: UstarKind,
pub declared_size: u64,
pub effective_size: u64,
/* private fields */
}Expand description
An ordinary physical member header block in the selected archive family.
PAX records remain on their physical payload frames. Use
crate::logical::TarReader for assembled member metadata.
Fields§
§position: u64The absolute byte position of this block in the source stream.
block: BlockThe lossless header block bytes.
format: ArchiveFormatThe selected archive family of this member header.
kind: UstarKindThe member type identified by the header.
declared_size: u64The size encoded directly in the ustar or GNU member header field.
effective_size: u64The size after applying applicable pax size records.
This is also the number of payload bytes for which data frames will be emitted. Member kinds that cannot carry payload are rejected when either their declared or effective size is nonzero.
Trait Implementations§
Source§impl Clone for HeaderFrame
impl Clone for HeaderFrame
Source§fn clone(&self) -> HeaderFrame
fn clone(&self) -> HeaderFrame
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 HeaderFrame
impl Debug for HeaderFrame
impl Eq for HeaderFrame
Source§impl PartialEq for HeaderFrame
impl PartialEq for HeaderFrame
Source§fn eq(&self, other: &HeaderFrame) -> bool
fn eq(&self, other: &HeaderFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeaderFrame
Auto Trait Implementations§
impl Freeze for HeaderFrame
impl RefUnwindSafe for HeaderFrame
impl Send for HeaderFrame
impl Sync for HeaderFrame
impl Unpin for HeaderFrame
impl UnsafeUnpin for HeaderFrame
impl UnwindSafe for HeaderFrame
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