pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub fn new(runtime: Runtime) -> Self
pub fn runtime(&self) -> &Runtime
pub fn set_workdir(&mut self, path: PathBuf)
pub fn set_run_mode(&mut self, ci: bool, non_interactive: bool)
pub fn is_interactive(&self) -> bool
pub fn cwd(&self) -> &PathBuf
pub fn repo_root(&self) -> &PathBuf
pub fn dry_run(&self) -> bool
pub fn auto_yes(&self) -> bool
pub fn force(&self) -> bool
pub fn in_git_repo(&self) -> bool
pub fn config(&self) -> Option<&ResolvedConfig>
pub fn explicit_config_path(&self) -> Option<&PathBuf>
pub fn project_config_path(&self) -> Option<PathBuf>
pub fn sources(&self) -> &AvailableConfigOptions
pub fn policy(&self) -> &Policy
pub fn ui_config(&self) -> Config
pub fn ui(&self) -> Ui
pub fn git(&self) -> Git
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Context
impl UnwindSafe for Context
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