pub enum RootEvent {
Entry(Result<Entry>),
Finished,
}Expand description
Per-root events exposed by RootWalk.
Unlike [Event], batches are flattened into entries and pool-wide completion ends the iterator
instead of being yielded; Finished therefore means only that the associated root completed.
RootWalk yields (root_idx, event), separating root routing from event meaning. [Event]
cannot do this uniformly because its Finished variant is pool-wide and has no root index.
Variants§
Entry(Result<Entry>)
An entry or filesystem error produced while walking the root.
Finished
All entries for the root have been emitted.
Auto Trait Implementations§
impl !RefUnwindSafe for RootEvent
impl !UnwindSafe for RootEvent
impl Freeze for RootEvent
impl Send for RootEvent
impl Sync for RootEvent
impl Unpin for RootEvent
impl UnsafeUnpin for RootEvent
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