pub struct WatchPathConfig { /* private fields */ }Expand description
Single watch backend configuration
This contains some settings that may relate to only one specific backend, such as to correctly configure each backend regardless of what is selected during runtime.
Implementations§
Source§impl WatchPathConfig
impl WatchPathConfig
Sourcepub fn new(recursive_mode: RecursiveMode) -> Self
pub fn new(recursive_mode: RecursiveMode) -> Self
Creates new instance with provided RecursiveMode
Sourcepub fn with_recursive_mode(self, recursive_mode: RecursiveMode) -> Self
pub fn with_recursive_mode(self, recursive_mode: RecursiveMode) -> Self
Set RecursiveMode for the watch
Sourcepub fn recursive_mode(&self) -> RecursiveMode
pub fn recursive_mode(&self) -> RecursiveMode
Returns current setting
Sourcepub fn with_dereference_symlinks(self, dereference_symlinks: bool) -> Self
pub fn with_dereference_symlinks(self, dereference_symlinks: bool) -> Self
Set whether a symbolic link is followed to its destination, for
RecursiveMode::NonRecursive watches on the INotifyWatcher.
Sourcepub fn dereference_symlinks(&self) -> bool
pub fn dereference_symlinks(&self) -> bool
Returns current setting
Trait Implementations§
Source§impl Clone for WatchPathConfig
impl Clone for WatchPathConfig
Auto Trait Implementations§
impl Freeze for WatchPathConfig
impl RefUnwindSafe for WatchPathConfig
impl Send for WatchPathConfig
impl Sync for WatchPathConfig
impl Unpin for WatchPathConfig
impl UnsafeUnpin for WatchPathConfig
impl UnwindSafe for WatchPathConfig
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