pub struct TreeDiff {
pub created: Vec<Entry>,
pub updated: Vec<Entry>,
pub redefined: Vec<Entry>,
pub moved: Vec<Entry>,
pub removed: Vec<RemovedEntry>,
}Expand description
What changed in one EntryTree::update pass.
The loader consumes this to start/stop/patch fibers without touching entries whose id, options, and position are unchanged.
Fields§
§created: Vec<Entry>Entries that appeared in the new data (subtree roots first).
updated: Vec<Entry>Entries still present whose non-structural options (config or nested children) changed.
redefined: Vec<Entry>Entries still present whose structural options changed — plugin name, inject declaration, or enabled flag — and therefore need a stop-and-start instead of an in-place patch.
moved: Vec<Entry>Entries that moved to a different parent.
removed: Vec<RemovedEntry>Entries whose ids vanished from the new data (whole subtrees).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeDiff
impl RefUnwindSafe for TreeDiff
impl Send for TreeDiff
impl Sync for TreeDiff
impl Unpin for TreeDiff
impl UnsafeUnpin for TreeDiff
impl UnwindSafe for TreeDiff
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