pub struct MessageProcessor<Q, S, E> { /* private fields */ }Expand description
Receives requests from the associated MessageClient,
and optionally sends a response.
Instances are created by the message_channel function.
Implementations§
Source§impl<Q, S, E> MessageProcessor<Q, S, E>
impl<Q, S, E> MessageProcessor<Q, S, E>
Sourcepub async fn pull_message(&mut self) -> Option<Message<Q, S, E>>
pub async fn pull_message(&mut self) -> Option<Message<Q, S, E>>
Awaits until it can return a new message to process, or None if all senders have been terminated.
Auto Trait Implementations§
impl<Q, S, E> Freeze for MessageProcessor<Q, S, E>
impl<Q, S, E> RefUnwindSafe for MessageProcessor<Q, S, E>
impl<Q, S, E> Send for MessageProcessor<Q, S, E>
impl<Q, S, E> Sync for MessageProcessor<Q, S, E>
impl<Q, S, E> Unpin for MessageProcessor<Q, S, E>
impl<Q, S, E> UnwindSafe for MessageProcessor<Q, S, E>
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