pub struct ModeInit {
pub mode: SandboxMode,
pub repo_root: PathBuf,
pub message: String,
pub precreate: bool,
}Expand description
Result of a ModeProvider claiming a repo during clone_repo.
Fields§
§mode: SandboxModeThe mode to store in the repo’s RepoState.
repo_root: PathBufThe repository root as resolved by the provider (canonicalized).
The server stores this as the repo’s remote_uri instead of the
backend’s jj/git-based resolution, and notes the detected root in the
response if the requested path was nested inside it.
message: StringHuman-facing message returned from clone_repo.
precreate: boolIf true, the server eagerly calls create_sandbox right after
clone_repo (e.g. to front-load expensive setup).
Auto Trait Implementations§
impl Freeze for ModeInit
impl RefUnwindSafe for ModeInit
impl Send for ModeInit
impl Sync for ModeInit
impl Unpin for ModeInit
impl UnsafeUnpin for ModeInit
impl UnwindSafe for ModeInit
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