pub enum Delivery {
Queued,
QueuedDropOldest,
DroppedNewest,
Handoff(Box<Flow>),
}Expand description
Outcome of pushing a message.
Queued* means the hop (or a replacement under DropOldest) lives in
the inbox for a later Receive. Handoff means a parked flow was
waiting for this hop — the caller (worker::deliver /
crate::Runtime::send) must resume_with and re-enqueue the flow.
Dropped variants never wake a waiter.
Variants§
Auto Trait Implementations§
impl !RefUnwindSafe for Delivery
impl !UnwindSafe for Delivery
impl Freeze for Delivery
impl Send for Delivery
impl Sync for Delivery
impl Unpin for Delivery
impl UnsafeUnpin for Delivery
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