pub struct HotReloadManager { /* private fields */ }Expand description
Configuration hot-reload manager
Implementations§
Source§impl HotReloadManager
impl HotReloadManager
Sourcepub async fn on_config_change(
&self,
callback: ConfigChangeCallback,
) -> IdeResult<()>
pub async fn on_config_change( &self, callback: ConfigChangeCallback, ) -> IdeResult<()>
Register a callback for configuration changes
Sourcepub async fn on_provider_availability_change(
&self,
callback: ProviderAvailabilityCallback,
) -> IdeResult<()>
pub async fn on_provider_availability_change( &self, callback: ProviderAvailabilityCallback, ) -> IdeResult<()>
Register a callback for provider availability changes
Sourcepub async fn check_config_changed(&self) -> IdeResult<bool>
pub async fn check_config_changed(&self) -> IdeResult<bool>
Check if configuration file has changed
Sourcepub async fn notify_config_changed(&self) -> IdeResult<()>
pub async fn notify_config_changed(&self) -> IdeResult<()>
Notify all configuration change callbacks
Sourcepub async fn notify_provider_availability_changed(
&self,
language: &str,
available: bool,
) -> IdeResult<()>
pub async fn notify_provider_availability_changed( &self, language: &str, available: bool, ) -> IdeResult<()>
Notify all provider availability change callbacks
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
Auto Trait Implementations§
impl Freeze for HotReloadManager
impl !RefUnwindSafe for HotReloadManager
impl Send for HotReloadManager
impl Sync for HotReloadManager
impl Unpin for HotReloadManager
impl !UnwindSafe for HotReloadManager
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> 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