Struct futures_intrusive::channel::ChannelStream
source · pub struct ChannelStream<'a, MutexType: RawMutex, T, A>where
A: RingBuf<Item = T>,{ /* private fields */ }
Expand description
A stream that receives from a GenericChannel
.
Not driving the ChannelStream
to completion after it has been polled
might lead to lost wakeup notifications.
Trait Implementations
sourceimpl<'a, MutexType: Debug + RawMutex, T: Debug, A: Debug> Debug for ChannelStream<'a, MutexType, T, A>where
A: RingBuf<Item = T>,
impl<'a, MutexType: Debug + RawMutex, T: Debug, A: Debug> Debug for ChannelStream<'a, MutexType, T, A>where
A: RingBuf<Item = T>,
sourceimpl<'a, MutexType, T, A> FusedStream for ChannelStream<'a, MutexType, T, A>where
A: RingBuf<Item = T>,
MutexType: RawMutex,
impl<'a, MutexType, T, A> FusedStream for ChannelStream<'a, MutexType, T, A>where
A: RingBuf<Item = T>,
MutexType: RawMutex,
sourcefn is_terminated(&self) -> bool
fn is_terminated(&self) -> bool
Returns
true
if the stream should no longer be polled.sourceimpl<'a, MutexType, T, A> Stream for ChannelStream<'a, MutexType, T, A>where
A: RingBuf<Item = T>,
MutexType: RawMutex,
impl<'a, MutexType, T, A> Stream for ChannelStream<'a, MutexType, T, A>where
A: RingBuf<Item = T>,
MutexType: RawMutex,
type Item = T
type Item = T
Values yielded by the stream.
Auto Trait Implementations
impl<'a, MutexType, T, A> !RefUnwindSafe for ChannelStream<'a, MutexType, T, A>
impl<'a, MutexType, T, A> Send for ChannelStream<'a, MutexType, T, A>where
MutexType: Sync,
T: Send,
impl<'a, MutexType, T, A> !Sync for ChannelStream<'a, MutexType, T, A>
impl<'a, MutexType, T, A> !Unpin for ChannelStream<'a, MutexType, T, A>
impl<'a, MutexType, T, A> !UnwindSafe for ChannelStream<'a, MutexType, T, A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more