pub struct ReloadPlan { /* private fields */ }Expand description
A fully-discovered registry, ready to be swapped into a live Workspace.
Opaque on purpose: it exists so that the I/O half of a reload (git
discovery, Workspace::plan_reload) can be separated from the swap half
(Workspace::apply_reload), which takes one lock and does no I/O. A server
that must reload several registries coherently plans them all first and then
applies them back to back, so the window in which two surfaces could report
different repo sets is a pair of adjacent lock acquisitions rather than a
filesystem walk.
Auto Trait Implementations§
impl Freeze for ReloadPlan
impl RefUnwindSafe for ReloadPlan
impl Send for ReloadPlan
impl Sync for ReloadPlan
impl Unpin for ReloadPlan
impl UnsafeUnpin for ReloadPlan
impl UnwindSafe for ReloadPlan
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