pub enum ProcessingPolicy {
MemoryLess,
MostRecent,
LeastRecent,
}
Expand description
This enum represent the different processing policies for the mailbox.
Variants§
MemoryLess
For each neighbouring message, only the last one received is kept. This policy, from the user’s viewpoint, acts similarly to the [MostRecent] version, but it is more memory efficient since the other messages received are substituted with the last received.
MostRecent
Keeps every message received from each neighbor, but returns only the most recent one. Used for processing in a LIFO order.
LeastRecent
Keeps every message received from each neighbor, but returns only the least recent one. Used for processing in a FIFO order.
Auto Trait Implementations§
impl RefUnwindSafe for ProcessingPolicy
impl Send for ProcessingPolicy
impl Sync for ProcessingPolicy
impl Unpin for ProcessingPolicy
impl UnwindSafe for ProcessingPolicy
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