pub struct ConsumerStream<T: Send + Sync + 'static> { /* private fields */ }Expand description
Wraps a MessageConsumer as a Stream<(), Message<T>>.
Calling Stream::execute returns a backpressure-aware stream that receives
one message at a time. Use consumer_as_bounded_stream when the stream
should complete after a fixed number of messages.
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ConsumerStream<T>
impl<T> !UnwindSafe for ConsumerStream<T>
impl<T> Freeze for ConsumerStream<T>
impl<T> Send for ConsumerStream<T>
impl<T> Sync for ConsumerStream<T>
impl<T> Unpin for ConsumerStream<T>
impl<T> UnsafeUnpin for ConsumerStream<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