pub enum Order {
Ascending,
Descending,
}Expand description
Which of a subscription’s groups comes first: the publisher sends its pending groups in
this order, and recv_group hands out the groups it holds in it. Before moq-lite-07 the
publisher sends newest first whatever this asks.
An order only: it never decides whether a group is delivered. A history
range (Start::Time or Start::Oldest) delivers every group it covers, and a
Start::Live range skips what its max judges stale, so an ascending subscriber that
wants a backlog drains it from a history range or a max that covers it.
Variants§
Ascending
Oldest first, draining a backlog in key order.
Descending
Newest first, so congestion sheds the backlog rather than the live edge.
Trait Implementations§
impl Copy for Order
impl Eq for Order
Source§impl Ord for Order
impl Ord for Order
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Order
impl PartialOrd for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.