pub struct Channel<T> { /* private fields */ }Expand description
A re-iterable channel: a cloneable handle around a stream factory. Each call
to Channel::iter re-runs the factory, producing a brand-new stream — so
iterating the channel twice issues the underlying work twice.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Channel<T>
impl<T> !UnwindSafe for Channel<T>
impl<T> Freeze for Channel<T>
impl<T> Send for Channel<T>
impl<T> Sync for Channel<T>
impl<T> Unpin for Channel<T>
impl<T> UnsafeUnpin for Channel<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