pub struct LogWatcher { /* private fields */ }
Implementations§
Source§impl LogWatcher
impl LogWatcher
pub fn new() -> Self
pub async fn change_file_path( &mut self, old_path: &str, new_path: &str, ) -> Result<(), Error>
pub async fn stop_monitoring_file(&mut self, path: &str) -> Result<(), Error>
pub async fn register<P: AsRef<Path>, F, Fut>( &mut self, path: P, callback: F, patterns: Option<Vec<&str>>, )
pub async fn monitoring(&self, poll_interval: Duration) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for LogWatcher
impl !RefUnwindSafe for LogWatcher
impl Send for LogWatcher
impl Sync for LogWatcher
impl Unpin for LogWatcher
impl !UnwindSafe for LogWatcher
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