pub enum WatchEvent {
DriveDetected {
mount_point: PathBuf,
},
DriveRemoved,
SyncStarted,
SyncCompleted(SyncReport),
SyncError(String),
Watching,
}Expand description
Events emitted by the watch loop — consumed by the caller (CLI / UI).
Variants§
DriveDetected
Drive-aware pair: target drive was just detected at this mount point.
DriveRemoved
Drive-aware pair: target drive was unplugged / no longer found.
SyncStarted
A sync is about to start.
SyncCompleted(SyncReport)
A sync completed successfully.
SyncError(String)
A sync failed with this error string.
Watching
Emitted once at startup when the watcher is ready.
Auto Trait Implementations§
impl Freeze for WatchEvent
impl RefUnwindSafe for WatchEvent
impl Send for WatchEvent
impl Sync for WatchEvent
impl Unpin for WatchEvent
impl UnsafeUnpin for WatchEvent
impl UnwindSafe for WatchEvent
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