pub struct OutboundQueue<B: Behavior> { /* private fields */ }Expand description
A queue of pending BehaviorOutput items ready to be polled by the
manager.
Implementations§
Source§impl<B: Behavior> OutboundQueue<B>
impl<B: Behavior> OutboundQueue<B>
Sourcepub fn push_ready(&mut self, output: impl Into<BehaviorOutput<B>>)
pub fn push_ready(&mut self, output: impl Into<BehaviorOutput<B>>)
Enqueues an output that is immediately ready.
Sourcepub async fn poll_next(&mut self) -> Option<BehaviorOutput<B>>
pub async fn poll_next(&mut self) -> Option<BehaviorOutput<B>>
Polls for the next available output.
Trait Implementations§
Auto Trait Implementations§
impl<B> !Freeze for OutboundQueue<B>
impl<B> !RefUnwindSafe for OutboundQueue<B>
impl<B> Send for OutboundQueue<B>
impl<B> !Sync for OutboundQueue<B>
impl<B> Unpin for OutboundQueue<B>
impl<B> UnsafeUnpin for OutboundQueue<B>
impl<B> !UnwindSafe for OutboundQueue<B>
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