pub struct TarFileHeader {
pub name: String,
pub size: u64,
pub mtime: u64,
pub mode: u32,
pub entry_type: TarEntryType,
pub link_name: Option<String>,
}Expand description
TAR file header information
Fields§
§name: StringFile name (may include path)
size: u64File size in bytes
mtime: u64Modification time as Unix timestamp
mode: u32File mode/permissions
entry_type: TarEntryTypeEntry type (file, directory, symlink, etc.)
link_name: Option<String>Link name for symlinks/hardlinks
Implementations§
Source§impl TarFileHeader
impl TarFileHeader
Sourcepub fn modified_time(&self) -> Option<DosDateTime>
pub fn modified_time(&self) -> Option<DosDateTime>
Convert Unix timestamp to DOS datetime
Trait Implementations§
Source§impl Clone for TarFileHeader
impl Clone for TarFileHeader
Source§fn clone(&self) -> TarFileHeader
fn clone(&self) -> TarFileHeader
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 moreAuto Trait Implementations§
impl Freeze for TarFileHeader
impl RefUnwindSafe for TarFileHeader
impl Send for TarFileHeader
impl Sync for TarFileHeader
impl Unpin for TarFileHeader
impl UnsafeUnpin for TarFileHeader
impl UnwindSafe for TarFileHeader
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