Struct apple_flat_package::reader::PkgReader
source · [−]Expand description
Read-only interface to a single flat package XAR archive.
Implementations
sourceimpl<R: Read + Seek + Sized + Debug> PkgReader<R>
impl<R: Read + Seek + Sized + Debug> PkgReader<R>
sourcepub fn new(reader: R) -> PkgResult<Self>
pub fn new(reader: R) -> PkgResult<Self>
Construct an instance from a reader.
The reader will read the contents of a XAR archive. This is likely
a .pkg file.
sourcepub fn into_inner(self) -> XarReader<R>
pub fn into_inner(self) -> XarReader<R>
Return the inner reader, consuming self.
sourcepub fn distribution(&mut self) -> PkgResult<Option<Distribution>>
pub fn distribution(&mut self) -> PkgResult<Option<Distribution>>
Obtain the parsed Distribution XML file describing the installer.
Not all flat packages have a Distribution file, so this may resolve to
None.
sourcepub fn root_component(&mut self) -> PkgResult<Option<ComponentPackageReader>>
pub fn root_component(&mut self) -> PkgResult<Option<ComponentPackageReader>>
Obtain the root component in this installer.
This will only return a component of this is a single component installer, not a product installer.
sourcepub fn component_packages(&mut self) -> PkgResult<Vec<ComponentPackageReader>>
pub fn component_packages(&mut self) -> PkgResult<Vec<ComponentPackageReader>>
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
impl<R> RefUnwindSafe for PkgReader<R> where
R: RefUnwindSafe,
impl<R> Send for PkgReader<R> where
R: Send,
impl<R> Sync for PkgReader<R> where
R: Sync,
impl<R> Unpin for PkgReader<R> where
R: Unpin,
impl<R> UnwindSafe for PkgReader<R> where
R: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more