[][src]Struct unshield::AsyncArchive

pub struct AsyncArchive<R> { /* fields omitted */ }
This is supported on feature="async" only.

An interface for reading an InstallShield Z archive asynchronously.

You can use this to read a Z archive out of any type that implements AsyncRead and AsyncSeek.


impl<R> AsyncArchive<R> where
    R: AsyncRead + AsyncSeek + Unpin

pub async fn new(__arg0: R) -> Result<Self>[src]

Create a new Z archive from an underlying reader.

This function will parse the file header and table of contents. If either of these fail, it will return an Err.

pub fn list(&self) -> impl Iterator<Item = &FileInfo>[src]

List the files contained in the archive.

pub async fn load<'_, '_>(&'_ mut self, path: &'_ str) -> Result<Vec<u8>>[src]

Load a file into a Vec.

pub async fn load_compressed<'_, '_>(
    &'_ mut self,
    path: &'_ str
) -> Result<Vec<u8>>

Load a file into a Vec without decompressing it.

Trait Implementations

impl<R: Debug> Debug for AsyncArchive<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for AsyncArchive<R> where
    R: RefUnwindSafe

impl<R> Send for AsyncArchive<R> where
    R: Send

impl<R> Sync for AsyncArchive<R> where
    R: Sync

impl<R> Unpin for AsyncArchive<R> where
    R: Unpin

impl<R> UnwindSafe for AsyncArchive<R> where
    R: UnwindSafe

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.