pub enum MoveResult {
AlreadyInFolder,
WouldMove,
Blocked {
reasons: BlockReasons,
},
Moved,
Failed {
detail: String,
},
}Expand description
Variants§
AlreadyInFolder
The destination is already the file’s sole parent — a no-op,
detected before any permissions.list call.
WouldMove
Clear to move: no gate is blocking it.
Blocked
Refused by at least one safety gate.
Fields
§
reasons: BlockReasonsEvery gate that blocked this move — a move can fail more than one simultaneously.
Moved
Moved.
Failed
The plan step or the files.update call failed.
Implementations§
Source§impl MoveResult
impl MoveResult
Sourcepub const fn is_pending(&self) -> bool
pub const fn is_pending(&self) -> bool
Whether execute still has something to do for this outcome.
Trait Implementations§
Source§impl Clone for MoveResult
impl Clone for MoveResult
Source§fn clone(&self) -> MoveResult
fn clone(&self) -> MoveResult
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 MoveResult
impl Debug for MoveResult
Auto Trait Implementations§
impl Freeze for MoveResult
impl RefUnwindSafe for MoveResult
impl Send for MoveResult
impl Sync for MoveResult
impl Unpin for MoveResult
impl UnsafeUnpin for MoveResult
impl UnwindSafe for MoveResult
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