pub struct TarHeader<'a> {
pub name: &'a str,
pub mode: u64,
pub uid: u64,
pub gid: u64,
pub size: u64,
pub mtime: u64,
pub typeflag: TypeFlag,
pub linkname: &'a str,
pub ustar: ExtraHeader<'a>,
}
Expand description
A tar header.
Fields§
§name: &'a str
The pathname of the entry. This field won’t longer than 100 because of the structure. POSIX and GNU adds extensions for pathnames longer than 100.
mode: u64
File mode.
uid: u64
User id of owner.
gid: u64
Group id of owner.
size: u64
Size of file.
mtime: u64
Modification time of file. Seconds since the epoch.
typeflag: TypeFlag
The type of entry.
linkname: &'a str
The link target of a link. If this entry is not a link, this field is empty.
ustar: ExtraHeader<'a>
The extra header.
Trait Implementations§
impl<'a> Eq for TarHeader<'a>
impl<'a> StructuralPartialEq for TarHeader<'a>
Auto Trait Implementations§
impl<'a> Freeze for TarHeader<'a>
impl<'a> RefUnwindSafe for TarHeader<'a>
impl<'a> Send for TarHeader<'a>
impl<'a> Sync for TarHeader<'a>
impl<'a> Unpin for TarHeader<'a>
impl<'a> UnwindSafe for TarHeader<'a>
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