pub enum DeleteOutcome {
Deleted {
path: PathBuf,
parent_note: Option<String>,
},
Vanished {
path: PathBuf,
},
}Expand description
What delete did (SP5a design §3).
Variants§
Deleted
The profile directory was removed; path is the un-canonicalized directory, parent_note a
non-fatal problem with removing the now-empty profile directory above it.
Vanished
Nothing was there by the time the locked delete ran: the profile vanished between the advisory check and the lock, which is the state the user asked for, not an error.
Trait Implementations§
Source§impl Clone for DeleteOutcome
impl Clone for DeleteOutcome
Source§fn clone(&self) -> DeleteOutcome
fn clone(&self) -> DeleteOutcome
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 DeleteOutcome
impl Debug for DeleteOutcome
impl Eq for DeleteOutcome
Source§impl PartialEq for DeleteOutcome
impl PartialEq for DeleteOutcome
impl StructuralPartialEq for DeleteOutcome
Auto Trait Implementations§
impl Freeze for DeleteOutcome
impl RefUnwindSafe for DeleteOutcome
impl Send for DeleteOutcome
impl Sync for DeleteOutcome
impl Unpin for DeleteOutcome
impl UnsafeUnpin for DeleteOutcome
impl UnwindSafe for DeleteOutcome
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.