pub struct FileListBuilder<T: Clone> { /* private fields */ }
Implementations§
Source§impl<T: Clone> FileListBuilder<T>
impl<T: Clone> FileListBuilder<T>
pub fn new<F: 'static + Fn(&str) -> WatchingFuncResult<T>>(open_func: F) -> Self
pub fn run_only_once(self, q: bool) -> Self
pub fn add_file(&mut self, file: WatchedFile<T>)
pub fn with_interval(self, inter: Duration) -> Self
pub fn with_max_retries(self, re: u32) -> Self
pub fn launch(self) -> Result<(), String>
Trait Implementations§
Source§impl<T: Clone + Clone> Clone for FileListBuilder<T>
impl<T: Clone + Clone> Clone for FileListBuilder<T>
Source§fn clone(&self) -> FileListBuilder<T>
fn clone(&self) -> FileListBuilder<T>
Returns a copy 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 moreAuto Trait Implementations§
impl<T> Freeze for FileListBuilder<T>
impl<T> !RefUnwindSafe for FileListBuilder<T>
impl<T> !Send for FileListBuilder<T>
impl<T> !Sync for FileListBuilder<T>
impl<T> Unpin for FileListBuilder<T>
impl<T> !UnwindSafe for FileListBuilder<T>
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