Skip to main content

Archive

Struct Archive 

Source
pub struct Archive<R> { /* private fields */ }

Implementations§

Source§

impl Archive<File>

Source

pub fn open_path<P: AsRef<Path>>(p: P) -> Result<Self, Error>

Source§

impl<R: Seek + Read> Archive<R>

Source

pub fn try_from(inner: R) -> Result<Self, Error>

Source

pub fn version(&self) -> Version

Source

pub fn header(&self) -> &ArchiveHeader

Source

pub fn verify(&mut self) -> Result<(), Error>

Verify the archive’s integrity by validating all checksums

Source

pub fn open_fork<'a, E: ReadableEntry>( &'a mut self, entry: &E, fork: Fork, ) -> Result<EntryReader<'a, R>, Error>

Open an archive entry for reading

Source

pub fn iter(&self) -> EntryIterator<R>

Iterate through all archive entries

Source

pub fn into_inner(self) -> R

Returns the underlying reader

Source

pub fn reset(&mut self) -> Result<(), Error>

Source

pub fn verify_entry(&mut self, e: Entry) -> Result<(), Error>

Verify integrity of an entry

Trait Implementations§

Source§

impl<R: Debug> Debug for Archive<R>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<R> Freeze for Archive<R>

§

impl<R> RefUnwindSafe for Archive<R>
where R: RefUnwindSafe,

§

impl<R> !Send for Archive<R>

§

impl<R> !Sync for Archive<R>

§

impl<R> Unpin for Archive<R>

§

impl<R> UnsafeUnpin for Archive<R>

§

impl<R> UnwindSafe for Archive<R>
where R: RefUnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.