Struct taildir::WatchOption
source · pub struct WatchOption { /* private fields */ }
Implementations
sourceimpl WatchOption
impl WatchOption
pub fn new(dir: String, seconds: u64) -> Self
pub fn watcher_type(self, watcher_type: WatcherType) -> Self
pub fn file_filter(self, filter: Rc<dyn Fn(&str) -> bool>) -> Self
pub fn line_filter(self, filter: Rc<dyn Fn(&str) -> bool>) -> Self
Auto Trait Implementations
impl !RefUnwindSafe for WatchOption
impl !Send for WatchOption
impl !Sync for WatchOption
impl Unpin for WatchOption
impl !UnwindSafe for WatchOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more