pub trait RealtimeWatch<V, S = &'static str>: Reload<V, S>{
// Required method
fn watch_realtime<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ReloadResult<RealtimeWatchHandle<V>, V, S>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for reloaders that support realtime event-based monitoring.
This trait extends Reload to provide efficient, event-driven updates
for data sources that support change notifications (e.g., file system events).
Required Methods§
Sourcefn watch_realtime<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ReloadResult<RealtimeWatchHandle<V>, V, S>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn watch_realtime<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ReloadResult<RealtimeWatchHandle<V>, V, S>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Set up realtime watching for the data source
Returns a handle that receives change notifications as they occur.