pub enum EntryTarget {
Within(PathBuf),
ArchiveRoot,
Escaping,
}Expand description
Where an archive entry should land, relative to the destination.
Variants§
Within(PathBuf)
Write it here, relative to the destination directory.
ArchiveRoot
The archive’s own root (. or ./). GNU tar emits one as the first
entry of tar -C dir .; it names the destination itself and carries
nothing to write, so it is skipped rather than refused.
Escaping
Points outside the destination and must not be written.
Trait Implementations§
Source§impl Clone for EntryTarget
impl Clone for EntryTarget
Source§fn clone(&self) -> EntryTarget
fn clone(&self) -> EntryTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EntryTarget
impl Debug for EntryTarget
impl Eq for EntryTarget
Source§impl PartialEq for EntryTarget
impl PartialEq for EntryTarget
impl StructuralPartialEq for EntryTarget
Auto Trait Implementations§
impl Freeze for EntryTarget
impl RefUnwindSafe for EntryTarget
impl Send for EntryTarget
impl Sync for EntryTarget
impl Unpin for EntryTarget
impl UnsafeUnpin for EntryTarget
impl UnwindSafe for EntryTarget
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.