#[non_exhaustive]pub struct Archive {
pub sfx_offset: usize,
pub main: MainHeader,
pub entries: Vec<Entry>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sfx_offset: usize§main: MainHeader§entries: Vec<Entry>Implementations§
Source§impl Archive
impl Archive
pub fn parse(input: &[u8]) -> Result<Self>
pub fn parse_owned(input: Vec<u8>) -> Result<Self>
pub fn parse_path(path: impl AsRef<Path>) -> Result<Self>
pub fn parse_path_with_signature( path: impl AsRef<Path>, signature: ArchiveSignature, ) -> Result<Self>
Sourcepub fn extract_to<F>(&self, password: Option<&[u8]>, open: F) -> Result<()>
pub fn extract_to<F>(&self, password: Option<&[u8]>, open: F) -> Result<()>
Streams extracted entries to caller-provided writers.
pub fn archive_comment(&self) -> Result<Option<Vec<u8>>>
pub fn authenticity_verification( &self, ) -> Result<Option<AuthenticityVerification>>
pub fn authenticity_verification_status( &self, ) -> Result<AuthenticityVerificationStatus>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Archive
impl RefUnwindSafe for Archive
impl Send for Archive
impl Sync for Archive
impl Unpin for Archive
impl UnsafeUnpin for Archive
impl UnwindSafe for Archive
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