[−][src]Struct unshield::AsyncArchive
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]
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>>
[src]
&'_ mut self,
path: &'_ str
) -> Result<Vec<u8>>
Load a file into a Vec
without decompressing it.
Trait Implementations
Auto Trait Implementations
impl<R> RefUnwindSafe for AsyncArchive<R> where
R: RefUnwindSafe,
R: RefUnwindSafe,
impl<R> Send for AsyncArchive<R> where
R: Send,
R: Send,
impl<R> Sync for AsyncArchive<R> where
R: Sync,
R: Sync,
impl<R> Unpin for AsyncArchive<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for AsyncArchive<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,