pub struct Ctx {
pub cache: Cache,
pub dirs: ProjectDirs,
}Expand description
Tracks context info including the package cache
Fields
cache: Cachedirs: ProjectDirsImplementations
sourceimpl Ctx
impl Ctx
pub fn new(dirs: ProjectDirs) -> Self
pub fn no_cache(dirs: ProjectDirs) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnwindSafe for Ctx
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more