Struct futures_intrusive::channel::shared::SharedStream
source · pub struct SharedStream<MutexType, T, A>where
MutexType: 'static + RawMutex,
T: 'static,
A: 'static + RingBuf<Item = T>,{ /* private fields */ }
Expand description
A stream that receives from channel using a GenericReceiver
.
Not driving the SharedStream
to completion after it has been polled
might lead to lost wakeup notifications.
Implementations
sourcepub fn close(&self) -> CloseStatus
pub fn close(&self) -> CloseStatus
Closes the channel. All pending and future send attempts will fail. Receive attempts will continue to succeed as long as there are items stored inside the channel. Further attempts will fail.
Trait Implementations
sourcefn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.type Item = T
type Item = T
Values yielded by the stream.