pub struct DebouncedUpdate { /* private fields */ }Expand description
Debounced file update to prevent excessive re-indexing
Implementations§
Source§impl DebouncedUpdate
impl DebouncedUpdate
pub fn new( file_path: PathBuf, index: &RwLock<FileIndex>, config: &IndexingConfig, duration: Duration, ) -> Self
pub async fn trigger(&mut self)
pub async fn process_if_ready(&mut self) -> Result<bool>
pub fn clear_pending(&mut self)
Trait Implementations§
impl Send for DebouncedUpdate
Auto Trait Implementations§
impl Freeze for DebouncedUpdate
impl !RefUnwindSafe for DebouncedUpdate
impl !Sync for DebouncedUpdate
impl Unpin for DebouncedUpdate
impl !UnwindSafe for DebouncedUpdate
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].