pub struct TeeSink<F: FnMut(&RunEvent)> {
pub events: Vec<RunEvent>,
/* private fields */
}Expand description
Collects events and also hands each to a callback, for live output.
Events only. Deltas are discarded, because a callback that took both would
have to decide which stream it was being handed on every call. A watcher
that wants the live text implements EventSink directly and overrides
EventSink::delta.
Fields§
§events: Vec<RunEvent>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for TeeSink<F>where
F: Freeze,
impl<F> RefUnwindSafe for TeeSink<F>where
F: RefUnwindSafe,
impl<F> Send for TeeSink<F>where
F: Send,
impl<F> Sync for TeeSink<F>where
F: Sync,
impl<F> Unpin for TeeSink<F>where
F: Unpin,
impl<F> UnsafeUnpin for TeeSink<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for TeeSink<F>where
F: UnwindSafe,
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