[][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.

Implementations

impl<R> AsyncArchive<R> where
    R: AsyncRead + AsyncSeek + Unpin
[src]

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>>
[src]

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.