struct Incoming {
notifications: UnboundedReceiver<Notification>,
queued_messages: VecDeque<String>,
}Expand description
Incoming notification processing
Fields§
§notifications: UnboundedReceiver<Notification>Notifications from the application
queued_messages: VecDeque<String>User messages queued
Implementations§
Source§impl Incoming
impl Incoming
Sourceasync fn wait_for_abort(&mut self) -> bool
async fn wait_for_abort(&mut self) -> bool
Process all available incoming notifications, until any abort notification is received
Abort notifications are Exit and ForceSubmitQueued, or the channel being closed.
Return true if we need to exit, false if we just need to abort and submit everything
that’s queued.
Auto Trait Implementations§
impl Freeze for Incoming
impl RefUnwindSafe for Incoming
impl Send for Incoming
impl Sync for Incoming
impl Unpin for Incoming
impl UnsafeUnpin for Incoming
impl UnwindSafe for Incoming
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