pub struct PkgReader<R: Read + Seek + Sized + Debug> { /* private fields */ }
Expand description

Read-only interface to a single flat package XAR archive.

Implementations

Construct an instance from a reader.

The reader will read the contents of a XAR archive. This is likely a .pkg file.

Return the inner reader, consuming self.

Obtain the flavor of the flat package.

Obtain the parsed Distribution XML file describing the installer.

Not all flat packages have a Distribution file, so this may resolve to None.

Obtain the root component in this installer.

This will only return a component of this is a single component installer, not a product installer.

Obtain component package instances in this flat package.

Component packages are the individual installable packages contained in a flat package archive.

If this is a single component installer, only a single instance will be returned. For product installers, all components are returned.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more