brk_rolldown_watcher 0.3.0

File watching implementation for Rolldown
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::time::Instant;

use notify::{Error as NotifyError, Event as NotifyEvent};

pub type EventResult = Result<Vec<Event>, Vec<NotifyError>>;

/// A debounced event is emitted after a short delay.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct Event {
  /// The original event.
  pub detail: NotifyEvent,

  /// The time at which the event occurred.
  pub time: Instant,
}