[][src]Struct librapidarchive::tar::header::HeaderGenResult

pub struct HeaderGenResult {
    pub tar_header: TarHeader,
    pub encoded_header: Vec<u8>,
    pub original_path: Box<PathBuf>,
    pub canonical_path: Box<PathBuf>,
    pub file_prefix: Option<Vec<u8>>,
}

A serialized tar header, ready for serialization into an archive.

File caching

A HeaderGen

Fields

tar_header: TarHeader

The abstract tar header which was used to produce the encoded header.

encoded_header: Vec<u8>

The encoded tar header, suitable for direct copy into an archive file.

original_path: Box<PathBuf>

The path of the file as would have been entered by the user, suitable for display in error messages and the like.

canonical_path: Box<PathBuf>

A valid, canonicalized path which can be used to open and read data for archival.

file_prefix: Option<Vec<u8>>

Optional cached file stream data. If populated, serialization should utilize this data while awaiting further data to copy to archive.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]