pub enum TarSplitItem {
Segment(Vec<u8>),
FileContent {
fd: OwnedFd,
size: u64,
name: String,
},
}Expand description
Item returned from tar-split stream iteration.
Variants§
Segment(Vec<u8>)
Raw segment bytes (TAR header + padding) to write directly.
FileContent
File content to write.
Fields
§
fd: OwnedFdFile descriptor for reading the content.
The caller takes ownership of this file descriptor and is responsible for reading the content and closing it when done.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TarSplitItem
impl RefUnwindSafe for TarSplitItem
impl Send for TarSplitItem
impl Sync for TarSplitItem
impl Unpin for TarSplitItem
impl UnsafeUnpin for TarSplitItem
impl UnwindSafe for TarSplitItem
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