pub struct AppCtx {
pub cwd: PathBuf,
pub repo_root: PathBuf,
pub layout: CacheLayout,
pub config: Config,
pub session_id: Option<String>,
}Expand description
Resolved context every command needs: the repo, its cache layout, the effective config, and the active session id (if any).
Fields§
§cwd: PathBuf§repo_root: PathBuf§layout: CacheLayout§config: Config§session_id: Option<String>Implementations§
Auto Trait Implementations§
impl Freeze for AppCtx
impl RefUnwindSafe for AppCtx
impl Send for AppCtx
impl Sync for AppCtx
impl Unpin for AppCtx
impl UnsafeUnpin for AppCtx
impl UnwindSafe for AppCtx
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