pub struct Ctx {Show 21 fields
pub http: Client,
pub home: PathBuf,
pub bindir: PathBuf,
pub os: String,
pub arch: String,
pub stdin_is_tty: bool,
pub stderr_is_tty: bool,
pub progress_overwrite: bool,
pub yes: bool,
pub dry_run: bool,
pub quiet: bool,
pub verbose: u8,
pub no_progress: bool,
pub offline: bool,
pub retries: u8,
pub timeout: u64,
pub force: bool,
pub json: bool,
pub use_color: bool,
pub json_emitted: Arc<AtomicBool>,
pub prompt: Arc<dyn Prompt>,
}Fields§
§http: Client§home: PathBuf§bindir: PathBuf§os: String§arch: String§stdin_is_tty: bool§stderr_is_tty: bool§progress_overwrite: bool§yes: bool§dry_run: bool§quiet: bool§verbose: u8§no_progress: bool§offline: bool§retries: u8§timeout: u64§force: bool§json: bool§use_color: bool§json_emitted: Arc<AtomicBool>§prompt: Arc<dyn Prompt>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ctx
impl !RefUnwindSafe for Ctx
impl Send for Ctx
impl Sync for Ctx
impl Unpin for Ctx
impl UnsafeUnpin for Ctx
impl !UnwindSafe for Ctx
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