Struct nix_compat::nar::reader::ArchiveReader
source · struct ArchiveReader<'a, 'r> {
inner: &'a mut Reader<'r>,
status: ArchiveReaderStatus<'a>,
}
Fields§
§inner: &'a mut Reader<'r>
§status: ArchiveReaderStatus<'a>
In debug mode, also track when we need to abandon this archive reader.
The archive reader must be abandoned when:
- An error is encountered at any point
- A file or directory reader is dropped before being read entirely.
All of these checks vanish in release mode.
Implementations§
source§impl<'a, 'r> ArchiveReader<'a, 'r>
impl<'a, 'r> ArchiveReader<'a, 'r>
sourcefn child(&mut self) -> ArchiveReader<'_, 'r>
fn child(&mut self) -> ArchiveReader<'_, 'r>
Create a new child reader from this one.
In debug mode, this reader will panic if called before the new child is exhausted / calls ready_parent
sourcefn check_correct(&self)
fn check_correct(&self)
Check the reader is in the correct status. Only does anything when debug assertions are on.
Auto Trait Implementations§
impl<'a, 'r> Freeze for ArchiveReader<'a, 'r>
impl<'a, 'r> !RefUnwindSafe for ArchiveReader<'a, 'r>
impl<'a, 'r> Send for ArchiveReader<'a, 'r>
impl<'a, 'r> !Sync for ArchiveReader<'a, 'r>
impl<'a, 'r> Unpin for ArchiveReader<'a, 'r>
impl<'a, 'r> !UnwindSafe for ArchiveReader<'a, 'r>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more