pub struct MessageStream { /* private fields */ }Expand description
Stream of SDK messages from the CLI
Implementations§
Source§impl MessageStream
impl MessageStream
pub fn new(receiver: Receiver<Result<SDKMessage, Error>>) -> Self
Sourcepub async fn next_message(&self) -> Option<Result<SDKMessage, Error>>
pub async fn next_message(&self) -> Option<Result<SDKMessage, Error>>
Receive the next message from the stream
Auto Trait Implementations§
impl Freeze for MessageStream
impl RefUnwindSafe for MessageStream
impl Send for MessageStream
impl Sync for MessageStream
impl !Unpin for MessageStream
impl !UnsafeUnpin 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