pub enum FileMove {
NotOnDisk,
Absent,
Moved(PathBuf),
}Expand description
What apply did to the file itself.
Three states and not two: there was nothing to move and this store has no disk are different answers, and a caller that conflated them would tell somebody their file is missing when it is sitting in a browser tab.
Variants§
NotOnDisk
The store holds its files somewhere this crate cannot reach - a browser, a test with an in-memory backend. Whoever owns the bytes renames them.
Absent
Nothing was at the old name. Not an error: a package whose .h5 never
shipped is already in that state, and the rename does not make it worse.
Moved(PathBuf)
Moved, and where to.
Trait Implementations§
impl Eq for FileMove
impl StructuralPartialEq for FileMove
Auto Trait Implementations§
impl Freeze for FileMove
impl RefUnwindSafe for FileMove
impl Send for FileMove
impl Sync for FileMove
impl Unpin for FileMove
impl UnsafeUnpin for FileMove
impl UnwindSafe for FileMove
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.