pub struct EventStream<T> { /* private fields */ }Expand description
Stream of inotify events
Allows for streaming events returned by Inotify::into_event_stream.
Implementations§
Source§impl<T> EventStream<T>
impl<T> EventStream<T>
Sourcepub fn watches(&self) -> Watches
pub fn watches(&self) -> Watches
Returns an instance of Watches to add and remove watches.
See Watches::add and Watches::remove.
Sourcepub fn into_inotify(self) -> Inotify
pub fn into_inotify(self) -> Inotify
Consumes the EventStream instance and returns an Inotify using the original
file descriptor that was passed from Inotify to create the EventStream.
Trait Implementations§
Source§impl<T: Debug> Debug for EventStream<T>
impl<T: Debug> Debug for EventStream<T>
Source§impl<T> Stream for EventStream<T>
impl<T> Stream for EventStream<T>
Auto Trait Implementations§
impl<T> Freeze for EventStream<T>where
T: Freeze,
impl<T> !RefUnwindSafe for EventStream<T>
impl<T> Send for EventStream<T>where
T: Send,
impl<T> Sync for EventStream<T>where
T: Sync,
impl<T> Unpin for EventStream<T>where
T: Unpin,
impl<T> !UnwindSafe for EventStream<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