pub enum DropRefusal {
Tree(PathBuf),
EditedCheckout(PathBuf),
OnlyDevice,
ChangeCopies {
disks: usize,
away: usize,
archived: usize,
needs: Needs,
},
Files {
policy: Option<String>,
needs: Needs,
files: Vec<EntityId>,
},
Blobs(usize),
}Expand description
Why a drop of a space is refused now.
Variants§
Tree(PathBuf)
A tree of the space has its folder on this device, which the person deals with first.
EditedCheckout(PathBuf)
A checkout of the space was edited since it was written, which the person deals with first.
OnlyDevice
No other device of the person’s that remains holds the space, so none could approve a request there, nor carry a revocation into it.
ChangeCopies
The space’s changes would be on fewer disks than its Critical policy asks for, as the accounts of the other disks say: how many other disks there are, how many of them are away from home, and how many are archive nodes’.
Fields
Files
Files whose copies on other disks would not meet their policy, as those disks’ accounts say.
Fields
Blobs(usize)
Blobs held here, besides the files’ current contents too, as their older versions, thumbnails and pictures, of which other disks’ accounts show fewer copies than they need: how many, which the device could then never remove.
Trait Implementations§
Source§impl Clone for DropRefusal
impl Clone for DropRefusal
Source§impl Debug for DropRefusal
impl Debug for DropRefusal
impl Eq for DropRefusal
Source§impl PartialEq for DropRefusal
impl PartialEq for DropRefusal
impl StructuralPartialEq for DropRefusal
Auto Trait Implementations§
impl Forget for DropRefusal
impl Freeze for DropRefusal
impl Move for DropRefusal
impl RefUnwindSafe for DropRefusal
impl Send for DropRefusal
impl Sync for DropRefusal
impl Unpin for DropRefusal
impl UnsafeUnpin for DropRefusal
impl UnwindSafe for DropRefusal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
key and return true if they are equal.