pub struct DoctorCtx<'a> {
pub bin_dir: &'a Path,
pub running_exe: &'a Path,
pub version: &'a str,
pub user_home: &'a Path,
pub path: Option<String>,
pub registration_file: Option<&'a Path>,
pub config_file: Option<&'a Path>,
pub env: &'a dyn Fn(&str) -> Option<String>,
}Fields§
§bin_dir: &'a PathThe launcher install dir (~/.local/bin, %LOCALAPPDATA%\opencode-ctl).
running_exe: &'a Pathstd::env::current_exe().
version: &'a strThe front’s CARGO_PKG_VERSION, for launcher_link_status.
user_home: &'a PathThe OS home: third input of resolve_binary.
path: Option<String>env_nonempty("PATH"): second input of resolve_binary.
registration_file: Option<&'a Path>The CLI’s Service.Info registration file (packages/client/src/effect/service.ts:146).
config_file: Option<&'a Path>The CLI’s ServiceConfig.Info file (packages/cli/src/services/service-config.ts:16).
env: &'a dyn Fn(&str) -> Option<String>The RAW environment lookup. Every read except OPENCODE_CTL_SERVER goes through blank_is_unset.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DoctorCtx<'a>
impl<'a> !Send for DoctorCtx<'a>
impl<'a> !Sync for DoctorCtx<'a>
impl<'a> !UnwindSafe for DoctorCtx<'a>
impl<'a> Freeze for DoctorCtx<'a>
impl<'a> Unpin for DoctorCtx<'a>
impl<'a> UnsafeUnpin for DoctorCtx<'a>
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