pub enum ExtensionMode {
Gnu,
Pax,
}Expand description
How to handle long paths and other extensions.
When paths exceed 100 bytes or link targets exceed 100 bytes, tar archives use extension mechanisms to store the full values. This enum selects which mechanism to use.
Variants§
Gnu
Use GNU extensions (LongLink/LongName pseudo-entries).
This emits a pseudo-entry with typeflag ‘L’ (for long names) or ‘K’ (for long link targets), followed by the actual entry with a truncated name. This is widely compatible with GNU tar.
Pax
Use PAX extensions (extended headers).
This emits a PAX extended header (typeflag ‘x’) containing the full path/linkpath, followed by the actual entry. This is the POSIX.1-2001 standard approach.
Trait Implementations§
Source§impl Clone for ExtensionMode
impl Clone for ExtensionMode
Source§fn clone(&self) -> ExtensionMode
fn clone(&self) -> ExtensionMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtensionMode
impl Debug for ExtensionMode
Source§impl Default for ExtensionMode
impl Default for ExtensionMode
Source§fn default() -> ExtensionMode
fn default() -> ExtensionMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for ExtensionMode
impl PartialEq for ExtensionMode
impl Copy for ExtensionMode
impl Eq for ExtensionMode
impl StructuralPartialEq for ExtensionMode
Auto Trait Implementations§
impl Freeze for ExtensionMode
impl RefUnwindSafe for ExtensionMode
impl Send for ExtensionMode
impl Sync for ExtensionMode
impl Unpin for ExtensionMode
impl UnsafeUnpin for ExtensionMode
impl UnwindSafe for ExtensionMode
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