pub struct TarStream<R> { /* private fields */ }Expand description
A strict stream of POSIX-pax or GNU frames sourced from an underlying reader.
Implementations§
Source§impl<R> TarStream<R>
impl<R> TarStream<R>
Sourcepub fn with_policy(self, policy: StreamPolicy) -> Self
pub fn with_policy(self, policy: StreamPolicy) -> Self
Configures the framing policy used by this stream.
Call before reading any frames.
Sourcepub fn format(&self) -> Option<ArchiveFormat>
pub fn format(&self) -> Option<ArchiveFormat>
Returns the selected archive family after the first header is read.
Auto Trait Implementations§
impl<R> Freeze for TarStream<R>where
R: Freeze,
impl<R> RefUnwindSafe for TarStream<R>where
R: RefUnwindSafe,
impl<R> Send for TarStream<R>where
R: Send,
impl<R> Sync for TarStream<R>where
R: Sync,
impl<R> Unpin for TarStream<R>where
R: Unpin,
impl<R> UnsafeUnpin for TarStream<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for TarStream<R>where
R: UnwindSafe,
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