pub struct TarEntry<'a> {
pub header: TarHeader<'a>,
pub contents: &'a [u8],
}
Expand description
A tar entry. Maybe a file, a directory, or some extensions.
Fields§
§header: TarHeader<'a>
Header of the entry.
contents: &'a [u8]
The content of the entry.
You may need to call parse_long_name
for GNU long name,
or parse_pax
for PAX properties.
Trait Implementations§
impl<'a> Eq for TarEntry<'a>
impl<'a> StructuralPartialEq for TarEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for TarEntry<'a>
impl<'a> RefUnwindSafe for TarEntry<'a>
impl<'a> Send for TarEntry<'a>
impl<'a> Sync for TarEntry<'a>
impl<'a> Unpin for TarEntry<'a>
impl<'a> UnwindSafe for TarEntry<'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