[][src]Struct librapidarchive::tar::recovery::RecoveryEntry

pub struct RecoveryEntry {
    pub original_path: Box<PathBuf>,
    pub canonical_path: Box<PathBuf>,
    pub header_length: u64,
}

Information on how to recover from a failed serialization.

Fields

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.

header_length: u64

Indicates how much of the zone is the tar header and how much is file data

Methods

impl RecoveryEntry[src]

pub fn new_from_headergen(
    hg: &HeaderGenResult,
    header_length: u64
) -> RecoveryEntry
[src]

pub fn new<P: AsRef<Path>, Q: AsRef<Path>>(
    original_path: &P,
    canonical_path: &Q,
    header_length: u64
) -> RecoveryEntry
[src]

pub fn is_same_file(&self, other: &Self) -> bool[src]

Trait Implementations

impl PartialEq<RecoveryEntry> for RecoveryEntry[src]

impl Clone for RecoveryEntry[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut 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.