struct Guards {
preconditions: Vec<Precondition>,
dirty: Vec<RepositoryPath>,
}Expand description
The preconditions and dirty paths collected while planning.
Fields§
§preconditions: Vec<Precondition>§dirty: Vec<RepositoryPath>Implementations§
Source§impl Guards
impl Guards
Sourcefn existing(
&mut self,
repo: &Repository,
path: &RepositoryPath,
current: FileEntry,
) -> Result<(), FilesError>
fn existing( &mut self, repo: &Repository, path: &RepositoryPath, current: FileEntry, ) -> Result<(), FilesError>
Record that path must still hold current, and whether the
repository can recover it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Guards
impl RefUnwindSafe for Guards
impl Send for Guards
impl Sync for Guards
impl Unpin for Guards
impl UnsafeUnpin for Guards
impl UnwindSafe for Guards
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