Skip to main content

MsiExtractor

Struct MsiExtractor 

Source
pub struct MsiExtractor<F> { /* private fields */ }

Implementations§

Source§

impl<F> MsiExtractor<F>
where F: Read + Seek,

Source

pub fn from_msi(package: Package<F>) -> Result<Self, Error>

Source

pub fn from_reader(reader: F) -> Result<MsiExtractor<F>, Error>

Source

pub fn to<P: AsRef<Path>>(&mut self, target: P)

Examples found in repository?
examples/sample.rs (line 6)
3fn main() -> Result<(), Error> {
4    let path = "sample/lib.msi";
5    let mut x = MsiExtractor::from_path(path)?;
6    x.to("sample/out");
7
8    Ok(())
9}
Source§

impl MsiExtractor<File>

Source

pub fn from_path<P>(path: P) -> Result<MsiExtractor<File>, Error>
where P: AsRef<Path>,

Examples found in repository?
examples/sample.rs (line 5)
3fn main() -> Result<(), Error> {
4    let path = "sample/lib.msi";
5    let mut x = MsiExtractor::from_path(path)?;
6    x.to("sample/out");
7
8    Ok(())
9}

Auto Trait Implementations§

§

impl<F> !Freeze for MsiExtractor<F>

§

impl<F> !RefUnwindSafe for MsiExtractor<F>

§

impl<F> !Send for MsiExtractor<F>

§

impl<F> !Sync for MsiExtractor<F>

§

impl<F> !UnwindSafe for MsiExtractor<F>

§

impl<F> Unpin for MsiExtractor<F>

§

impl<F> UnsafeUnpin for MsiExtractor<F>

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.