pub struct ConfigHotReloadCoordinator { /* private fields */ }Expand description
Configuration hot-reload coordinator
Implementations§
Source§impl ConfigHotReloadCoordinator
impl ConfigHotReloadCoordinator
Sourcepub fn new(config_path: impl AsRef<Path>) -> Self
pub fn new(config_path: impl AsRef<Path>) -> Self
Create a new configuration hot-reload coordinator
Sourcepub async fn load_config(&self) -> IdeResult<IdeIntegrationConfig>
pub async fn load_config(&self) -> IdeResult<IdeIntegrationConfig>
Load initial configuration
Sourcepub async fn get_config(&self) -> IdeIntegrationConfig
pub async fn get_config(&self) -> IdeIntegrationConfig
Get current configuration
Sourcepub async fn reload_config(&self) -> IdeResult<()>
pub async fn reload_config(&self) -> IdeResult<()>
Reload configuration from file
Sourcepub async fn start_watching(&self, check_interval_ms: u64) -> IdeResult<()>
pub async fn start_watching(&self, check_interval_ms: u64) -> IdeResult<()>
Start watching configuration file for changes
Sourcepub async fn start_lsp_health_checks(&self, interval_ms: u64) -> IdeResult<()>
pub async fn start_lsp_health_checks(&self, interval_ms: u64) -> IdeResult<()>
Start LSP health checks
Sourcepub async fn set_provider_chain(&self, provider_chain: ProviderChainManager)
pub async fn set_provider_chain(&self, provider_chain: ProviderChainManager)
Set provider chain manager for updates
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigHotReloadCoordinator
impl !RefUnwindSafe for ConfigHotReloadCoordinator
impl Send for ConfigHotReloadCoordinator
impl Sync for ConfigHotReloadCoordinator
impl Unpin for ConfigHotReloadCoordinator
impl !UnwindSafe for ConfigHotReloadCoordinator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more