pub enum PriorityQueueMessage<T, P, TargetRoute, ReplyRoute> {
Offer {
value: T,
priority: P,
reply_to: ReplyRoute,
},
Release {
to: TargetRoute,
reply_to: ReplyRoute,
},
}Expand description
Operations accepted by PriorityQueue.
Variants§
Offer
Offer one owned value at an immutable priority.
Fields
§
value: TOwned value.
§
priority: PComparable priority; greater values release first.
§
reply_to: ReplyRouteTyped admission-result recipient.
Release
Release one value to a typed destination.
Auto Trait Implementations§
impl<T, P, TargetRoute, ReplyRoute> Freeze for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
impl<T, P, TargetRoute, ReplyRoute> RefUnwindSafe for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
impl<T, P, TargetRoute, ReplyRoute> Send for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
impl<T, P, TargetRoute, ReplyRoute> Sync for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
impl<T, P, TargetRoute, ReplyRoute> Unpin for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
impl<T, P, TargetRoute, ReplyRoute> UnsafeUnpin for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
impl<T, P, TargetRoute, ReplyRoute> UnwindSafe for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
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