Struct inotify::EventStream
source · 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>where
T: AsMut<[u8]> + AsRef<[u8]>,
impl<T> EventStream<T>where T: AsMut<[u8]> + AsRef<[u8]>,
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>where
T: AsMut<[u8]> + AsRef<[u8]>,
impl<T> Stream for EventStream<T>where T: AsMut<[u8]> + AsRef<[u8]>,
Auto Trait Implementations§
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