pub struct LogWatcher { /* private fields */ }
Implementations§
Source§impl LogWatcher
impl LogWatcher
pub fn new(file_path: impl Into<PathBuf>) -> Self
pub async fn send_signal( &self, signal: LogWatcherSignal, ) -> Result<(), SendError<LogWatcherSignal>>
pub async fn read_message(&mut self) -> Option<Vec<u8>>
pub fn try_read_message(&mut self) -> Result<Vec<u8>, TryRecvError>
pub fn spawn( &self, skip_to_end: bool, ) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error + Send + Sync + 'static>>> + Send + Sync>>
Trait Implementations§
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