Enum vodozemac::megolm::SessionOrdering
source · 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
source§fn eq(&self, other: &SessionOrdering) -> bool
fn eq(&self, other: &SessionOrdering) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)