Skip to main content

PriorityQueueMessage

Enum PriorityQueueMessage 

Source
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: T

Owned value.

§priority: P

Comparable priority; greater values release first.

§reply_to: ReplyRoute

Typed admission-result recipient.

§

Release

Release one value to a typed destination.

Fields

§to: TargetRoute

Destination.

§reply_to: ReplyRoute

Typed release-result recipient.

Auto Trait Implementations§

§

impl<T, P, TargetRoute, ReplyRoute> Freeze for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
where T: Freeze, P: Freeze, ReplyRoute: Freeze, TargetRoute: Freeze,

§

impl<T, P, TargetRoute, ReplyRoute> RefUnwindSafe for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
where T: RefUnwindSafe, P: RefUnwindSafe, ReplyRoute: RefUnwindSafe, TargetRoute: RefUnwindSafe,

§

impl<T, P, TargetRoute, ReplyRoute> Send for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
where T: Send, P: Send, ReplyRoute: Send, TargetRoute: Send,

§

impl<T, P, TargetRoute, ReplyRoute> Sync for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
where T: Sync, P: Sync, ReplyRoute: Sync, TargetRoute: Sync,

§

impl<T, P, TargetRoute, ReplyRoute> Unpin for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
where T: Unpin, P: Unpin, ReplyRoute: Unpin, TargetRoute: Unpin,

§

impl<T, P, TargetRoute, ReplyRoute> UnsafeUnpin for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
where T: UnsafeUnpin, P: UnsafeUnpin, ReplyRoute: UnsafeUnpin, TargetRoute: UnsafeUnpin,

§

impl<T, P, TargetRoute, ReplyRoute> UnwindSafe for PriorityQueueMessage<T, P, TargetRoute, ReplyRoute>
where T: UnwindSafe, P: UnwindSafe, ReplyRoute: UnwindSafe, TargetRoute: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.