pub enum TrashAnomaly {
ContentPurged {
original_path: String,
},
PathTraversal {
original_path: String,
},
DeletionTimeMissing {
original_path: String,
},
}Expand description
An XDG-trash anomaly, with the offending evidence attached.
Variants§
ContentPurged
A .trashinfo whose files/<name> content is absent: the metadata of a
trashed file survives but its content has been purged.
PathTraversal
The stored Path= escapes its directory via a .. component — forbidden
by the spec for relative paths, consistent with a crafted entry.
DeletionTimeMissing
DeletionDate= was absent or unparseable, so the deletion time is unknown.
Trait Implementations§
Source§impl Clone for TrashAnomaly
impl Clone for TrashAnomaly
Source§fn clone(&self) -> TrashAnomaly
fn clone(&self) -> TrashAnomaly
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 TrashAnomaly
impl Debug for TrashAnomaly
impl Eq for TrashAnomaly
Source§impl PartialEq for TrashAnomaly
impl PartialEq for TrashAnomaly
Source§fn eq(&self, other: &TrashAnomaly) -> bool
fn eq(&self, other: &TrashAnomaly) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TrashAnomaly
Auto Trait Implementations§
impl Freeze for TrashAnomaly
impl RefUnwindSafe for TrashAnomaly
impl Send for TrashAnomaly
impl Sync for TrashAnomaly
impl Unpin for TrashAnomaly
impl UnsafeUnpin for TrashAnomaly
impl UnwindSafe for TrashAnomaly
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