#[non_exhaustive]pub enum StateResolutionVersion {
    V1,
    V2(StateResolutionV2Rules),
}Expand description
The version of state resolution for a room version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V1
First version of the state resolution algorithm (spec), introduced in room version 1.
V2(StateResolutionV2Rules)
Second version of the state resolution algorithm (spec), introduced in room version 2.
Implementations§
Source§impl StateResolutionVersion
 
impl StateResolutionVersion
Sourcepub fn v2_rules(&self) -> Option<&StateResolutionV2Rules>
 Available on crate feature events only.
pub fn v2_rules(&self) -> Option<&StateResolutionV2Rules>
events only.Gets the StateResolutionV2Rules for the room version, if it uses the second version of
the state resolution algorithm.
Trait Implementations§
Source§impl Clone for StateResolutionVersion
 
impl Clone for StateResolutionVersion
Source§fn clone(&self) -> StateResolutionVersion
 
fn clone(&self) -> StateResolutionVersion
Returns a duplicate 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 StateResolutionVersion
 
impl Debug for StateResolutionVersion
Source§impl PartialEq for StateResolutionVersion
 
impl PartialEq for StateResolutionVersion
impl Copy for StateResolutionVersion
impl Eq for StateResolutionVersion
impl StructuralPartialEq for StateResolutionVersion
Auto Trait Implementations§
impl Freeze for StateResolutionVersion
impl RefUnwindSafe for StateResolutionVersion
impl Send for StateResolutionVersion
impl Sync for StateResolutionVersion
impl Unpin for StateResolutionVersion
impl UnwindSafe for StateResolutionVersion
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> 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.