pub struct WatchConfig {
pub debounce_ms: u64,
pub min_interval_ms: u64,
pub sync_on_start: bool,
pub dry_run: bool,
pub enable_tray: bool,
pub tray_icon: Option<String>,
pub periodic_sync_interval_ms: Option<u64>,
}Expand description
Watch mode configuration
Fields§
§debounce_ms: u64How long to wait after changes before syncing (milliseconds)
min_interval_ms: u64Minimum interval between syncs (milliseconds)
sync_on_start: boolWhether to sync on startup
dry_run: boolDry run mode - detect changes but don’t sync
enable_tray: boolEnable system tray indicator (requires tray feature)
tray_icon: Option<String>Custom tray icon: a freedesktop icon name or a path to an image file
periodic_sync_interval_ms: Option<u64>Optional periodic sync interval in milliseconds. When set, sync attempts are triggered even without filesystem events.
Trait Implementations§
Source§impl Clone for WatchConfig
impl Clone for WatchConfig
Source§fn clone(&self) -> WatchConfig
fn clone(&self) -> WatchConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WatchConfig
impl Debug for WatchConfig
Auto Trait Implementations§
impl Freeze for WatchConfig
impl RefUnwindSafe for WatchConfig
impl Send for WatchConfig
impl Sync for WatchConfig
impl Unpin for WatchConfig
impl UnwindSafe for WatchConfig
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