pub struct FileWatcherServiceBuilder { /* private fields */ }Expand description
Builder for FileWatcherService.
Implementations§
Source§impl FileWatcherServiceBuilder
impl FileWatcherServiceBuilder
Sourcepub fn config_watcher(self, watcher: SharedConfigWatcher) -> Self
pub fn config_watcher(self, watcher: SharedConfigWatcher) -> Self
Set the config watcher.
Sourcepub fn debounce_ms(self, ms: u64) -> Self
pub fn debounce_ms(self, ms: u64) -> Self
Set debounce duration.
Sourcepub fn extensions(self, exts: Vec<String>) -> Self
pub fn extensions(self, exts: Vec<String>) -> Self
Set file extensions.
Sourcepub fn watch(self, source: ConfigSource) -> Self
pub fn watch(self, source: ConfigSource) -> Self
Add a path to watch on startup.
Sourcepub fn build(self) -> Result<FileWatcherService>
pub fn build(self) -> Result<FileWatcherService>
Build the file watcher service.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileWatcherServiceBuilder
impl !RefUnwindSafe for FileWatcherServiceBuilder
impl Send for FileWatcherServiceBuilder
impl Sync for FileWatcherServiceBuilder
impl Unpin for FileWatcherServiceBuilder
impl UnsafeUnpin for FileWatcherServiceBuilder
impl !UnwindSafe for FileWatcherServiceBuilder
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