pub struct ScopeIntent {
pub target: Option<Vec<String>>,
pub drop: Vec<String>,
}Expand description
A rescope in flight (scoped-read design §4.3). target is the scope
the workspace is moving TO; None means the whole tree.
Fields§
§target: Option<Vec<String>>§drop: Vec<String>The paths this rescope is removing from the held set, recorded BEFORE the first mutation.
Load-bearing, and the mutation check that found it: replay
cannot RE-DERIVE this set. Once a path is out of
baseline.entries it is indistinguishable from a file the agent
just created — same scan row, same absence from the baseline —
and the two have opposite correct answers: unlink the leftover,
KEEP the agent’s new file. Deriving the drop set from the
baseline made a crash between the uncite and the unlink leave
six uncited files on disk forever; deriving it from the tree
would delete the agent’s work instead.
Trait Implementations§
Source§impl Clone for ScopeIntent
impl Clone for ScopeIntent
Source§fn clone(&self) -> ScopeIntent
fn clone(&self) -> ScopeIntent
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 ScopeIntent
impl Debug for ScopeIntent
Source§impl<'de> Deserialize<'de> for ScopeIntent
impl<'de> Deserialize<'de> for ScopeIntent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScopeIntent
Source§impl PartialEq for ScopeIntent
impl PartialEq for ScopeIntent
Source§impl Serialize for ScopeIntent
impl Serialize for ScopeIntent
impl StructuralPartialEq for ScopeIntent
Auto Trait Implementations§
impl Freeze for ScopeIntent
impl RefUnwindSafe for ScopeIntent
impl Send for ScopeIntent
impl Sync for ScopeIntent
impl Unpin for ScopeIntent
impl UnsafeUnpin for ScopeIntent
impl UnwindSafe for ScopeIntent
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