pub struct Collector<T: Sink> { /* private fields */ }Expand description
A collector for output lines.
For proper cleanup, call abort() which gracefully waits for the collecting task to complete.
It should terminate fast, as an internal termination signal is send to it.
If dropped without calling abort(), the termination will be sent as well,
but the task will be aborted (forceful, not waiting for completion).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Collector<T>
impl<T> !RefUnwindSafe for Collector<T>
impl<T> Send for Collector<T>
impl<T> Sync for Collector<T>
impl<T> Unpin for Collector<T>
impl<T> !UnwindSafe for Collector<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