pub struct SystemClient { /* private fields */ }Expand description
Client for system-level operations (init, index, doctor, provider).
Implementations§
Source§impl SystemClient
impl SystemClient
Sourcepub fn initialize<F>(
config: InitConfig,
on_progress: Option<F>,
) -> Result<InitResult>where
F: FnMut(InitProgress),
pub fn initialize<F>(
config: InitConfig,
on_progress: Option<F>,
) -> Result<InitResult>where
F: FnMut(InitProgress),
Initialize a new workspace (static method).
Sourcepub fn diagnose(&self) -> Result<Vec<DiagnoseResult>>
pub fn diagnose(&self) -> Result<Vec<DiagnoseResult>>
Run diagnostics on all providers.
Sourcepub fn check_file(
&self,
path: &Path,
provider: Option<&str>,
) -> Result<CheckResult>
pub fn check_file( &self, path: &Path, provider: Option<&str>, ) -> Result<CheckResult>
Check if a file can be parsed (requires workspace context).
Sourcepub fn inspect_file(
path: &Path,
lines: usize,
json_format: bool,
) -> Result<InspectResult>
pub fn inspect_file( path: &Path, lines: usize, json_format: bool, ) -> Result<InspectResult>
Inspect file contents with parsing.
Sourcepub fn reindex<F>(
&self,
scope: ProjectScope,
force: bool,
provider_filter: Option<&str>,
on_progress: F,
) -> Result<()>where
F: FnMut(IndexProgress),
pub fn reindex<F>(
&self,
scope: ProjectScope,
force: bool,
provider_filter: Option<&str>,
on_progress: F,
) -> Result<()>where
F: FnMut(IndexProgress),
Reindex the workspace.
Sourcepub fn list_providers(&self) -> Result<Vec<ProviderConfig>>
pub fn list_providers(&self) -> Result<Vec<ProviderConfig>>
List provider configurations.
Sourcepub fn detect_providers() -> Result<Config>
pub fn detect_providers() -> Result<Config>
Detect providers in current environment.
Auto Trait Implementations§
impl Freeze for SystemClient
impl RefUnwindSafe for SystemClient
impl Send for SystemClient
impl Sync for SystemClient
impl Unpin for SystemClient
impl UnwindSafe for SystemClient
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