pub struct WatchReceiver { /* private fields */ }Expand description
Reader half of a file watch session. Receives filesystem events asynchronously.
Implementations§
Source§impl WatchReceiver
impl WatchReceiver
Sourcepub async fn recv(&mut self) -> Option<WatchEvent>
pub async fn recv(&mut self) -> Option<WatchEvent>
Receive the next watch event. Returns None when the watch ends.
Sourcepub fn try_recv(&mut self) -> Result<WatchEvent, TryRecvError>
pub fn try_recv(&mut self) -> Result<WatchEvent, TryRecvError>
Try to receive a buffered event without blocking.
Auto Trait Implementations§
impl Freeze for WatchReceiver
impl RefUnwindSafe for WatchReceiver
impl Send for WatchReceiver
impl Sync for WatchReceiver
impl Unpin for WatchReceiver
impl UnsafeUnpin for WatchReceiver
impl UnwindSafe for WatchReceiver
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