pub struct HardlinkTarget(/* private fields */);Expand description
A hardlink target that passed HardlinkTracker validation.
The path is relative, non-empty and free of NUL bytes, root and prefix
components; every normal component passed the component checks, and the
target resolved inside the extraction root when it was validated. It may
contain .. components that stay inside the root, and it is re-resolved
when opened in the second extraction pass, so it names a lexical location,
not a proof about what is on disk at that time.
There is no public constructor: the only producer is
HardlinkTracker’s validation, so a hardlink target cannot be assembled
from an unchecked path.
Implementations§
Trait Implementations§
Source§impl Clone for HardlinkTarget
impl Clone for HardlinkTarget
Source§impl Debug for HardlinkTarget
impl Debug for HardlinkTarget
impl Eq for HardlinkTarget
Source§impl PartialEq for HardlinkTarget
impl PartialEq for HardlinkTarget
impl StructuralPartialEq for HardlinkTarget
Auto Trait Implementations§
impl Freeze for HardlinkTarget
impl RefUnwindSafe for HardlinkTarget
impl Send for HardlinkTarget
impl Sync for HardlinkTarget
impl Unpin for HardlinkTarget
impl UnsafeUnpin for HardlinkTarget
impl UnwindSafe for HardlinkTarget
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.