pub struct FileHeader {
pub filename: PathBuf,
pub unpacked_size: u64,
pub file_crc: u32,
pub file_time: u32,
pub method: u32,
pub file_attr: u32,
/* private fields */
}Expand description
Metadata for an entry in a RAR archive
Created using the read_header methods in an OpenArchive, contains information for the file that follows which is to be processed next.
Fields§
§filename: PathBuf§unpacked_size: u64§file_crc: u32§file_time: u32§method: u32§file_attr: u32Implementations§
Source§impl FileHeader
impl FileHeader
Sourcepub fn is_split(&self) -> bool
pub fn is_split(&self) -> bool
is this entry split across multiple volumes.
Will also work in open mode List
Sourcepub fn is_split_after(&self) -> bool
pub fn is_split_after(&self) -> bool
is this entry split across multiple volumes, starting here
Will also work in open mode List
Sourcepub fn is_split_before(&self) -> bool
pub fn is_split_before(&self) -> bool
Sourcepub fn is_directory(&self) -> bool
pub fn is_directory(&self) -> bool
is this entry a directory
Sourcepub fn is_encrypted(&self) -> bool
pub fn is_encrypted(&self) -> bool
is this entry encrypted
Trait Implementations§
Source§impl Debug for FileHeader
impl Debug for FileHeader
Source§impl Display for FileHeader
impl Display for FileHeader
Source§impl From<HeaderDataEx> for FileHeader
impl From<HeaderDataEx> for FileHeader
Source§fn from(header: HeaderDataEx) -> Self
fn from(header: HeaderDataEx) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileHeader
impl RefUnwindSafe for FileHeader
impl Send for FileHeader
impl Sync for FileHeader
impl Unpin for FileHeader
impl UnsafeUnpin for FileHeader
impl UnwindSafe for FileHeader
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