pub struct ArchiveEntry<'a> { /* private fields */ }
Expand description
Describes an entry in an archive. Currently only supports files but no directories.
Implementations§
Source§impl<'a> ArchiveEntry<'a>
impl<'a> ArchiveEntry<'a>
Sourcepub const fn filename(&self) -> TarFormatString<{ POSIX_1003_MAX_FILENAME_LEN }>
pub const fn filename(&self) -> TarFormatString<{ POSIX_1003_MAX_FILENAME_LEN }>
Filename of the entry with a maximum of 100 characters (including the terminating NULL-byte).
Sourcepub fn data_as_str(&self) -> Result<&'a str, Utf8Error>
pub fn data_as_str(&self) -> Result<&'a str, Utf8Error>
Data of the file as string slice, if data is valid UTF-8.
Sourcepub const fn posix_header(&self) -> &PosixHeader
pub const fn posix_header(&self) -> &PosixHeader
Returns the PosixHeader
for the entry.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ArchiveEntry<'a>
impl<'a> RefUnwindSafe for ArchiveEntry<'a>
impl<'a> Send for ArchiveEntry<'a>
impl<'a> Sync for ArchiveEntry<'a>
impl<'a> Unpin for ArchiveEntry<'a>
impl<'a> UnwindSafe for ArchiveEntry<'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