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
sourceimpl<MutexType, T, A> SharedStream<MutexType, T, A> where
    MutexType: RawMutex,
    A: 'static + RingBuf<Item = T>, 
 
impl<MutexType, T, A> SharedStream<MutexType, T, A> where
    MutexType: RawMutex,
    A: 'static + RingBuf<Item = T>, 
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
sourceimpl<MutexType: Debug, T: Debug, A: Debug> Debug for SharedStream<MutexType, T, A> where
    MutexType: 'static + RawMutex,
    T: 'static,
    A: 'static + RingBuf<Item = T>, 
 
impl<MutexType: Debug, T: Debug, A: Debug> Debug for SharedStream<MutexType, T, A> where
    MutexType: 'static + RawMutex,
    T: 'static,
    A: 'static + RingBuf<Item = T>, 
sourceimpl<MutexType, T, A> FusedStream for SharedStream<MutexType, T, A> where
    MutexType: RawMutex,
    A: 'static + RingBuf<Item = T>, 
 
impl<MutexType, T, A> FusedStream for SharedStream<MutexType, T, A> where
    MutexType: RawMutex,
    A: 'static + RingBuf<Item = T>, 
sourcefn is_terminated(&self) -> bool
 
fn is_terminated(&self) -> bool
Returns true if the stream should no longer be polled.
sourceimpl<MutexType, T, A> Stream for SharedStream<MutexType, T, A> where
    MutexType: RawMutex,
    A: 'static + RingBuf<Item = T>, 
 
impl<MutexType, T, A> Stream for SharedStream<MutexType, T, A> where
    MutexType: RawMutex,
    A: 'static + RingBuf<Item = T>, 
type Item = T
type Item = T
Values yielded by the stream.
Auto Trait Implementations
impl<MutexType, T, A> !RefUnwindSafe for SharedStream<MutexType, T, A>
impl<MutexType, T, A> Send for SharedStream<MutexType, T, A> where
    A: Send,
    MutexType: Send + Sync,
    T: Send, 
impl<MutexType, T, A> !Sync for SharedStream<MutexType, T, A>
impl<MutexType, T, A> !Unpin for SharedStream<MutexType, T, A>
impl<MutexType, T, A> !UnwindSafe for SharedStream<MutexType, T, A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    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