pub enum SessionOrdering {
Equal,
Better,
Worse,
Unconnected,
}
Expand description
The result of a comparison between two InboundGroupSession
types.
Tells us if one session can be considered to be better than another one.
Variants§
Equal
The sessions are the same.
Better
The first session has a better initial message index than the second one.
Worse
The first session has a worse initial message index than the second one.
Unconnected
The sessions are not the same, they can’t be compared.
Trait Implementations§
Source§impl Clone for SessionOrdering
impl Clone for SessionOrdering
Source§fn clone(&self) -> SessionOrdering
fn clone(&self) -> SessionOrdering
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SessionOrdering
impl Debug for SessionOrdering
Source§impl PartialEq for SessionOrdering
impl PartialEq for SessionOrdering
impl Copy for SessionOrdering
impl Eq for SessionOrdering
impl StructuralPartialEq for SessionOrdering
Auto Trait Implementations§
impl Freeze for SessionOrdering
impl RefUnwindSafe for SessionOrdering
impl Send for SessionOrdering
impl Sync for SessionOrdering
impl Unpin for SessionOrdering
impl UnwindSafe for SessionOrdering
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