pub struct MessageStream { /* private fields */ }Implementations§
Source§impl MessageStream
impl MessageStream
Sourcepub async fn receive(
&self,
max_items: usize,
) -> Result<Vec<MessageStreamMessage>>
pub async fn receive( &self, max_items: usize, ) -> Result<Vec<MessageStreamMessage>>
Wait for one message, then return a bounded currently-available batch.
pub async fn receive_one(&self) -> Result<MessageStreamMessage>
Trait Implementations§
Source§impl Clone for MessageStream
impl Clone for MessageStream
Source§fn clone(&self) -> MessageStream
fn clone(&self) -> MessageStream
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MessageStream
impl RefUnwindSafe for MessageStream
impl Send for MessageStream
impl Sync for MessageStream
impl Unpin for MessageStream
impl UnwindSafe for MessageStream
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