#[non_exhaustive]pub struct StateResolutionV2Rules {
pub begin_iterative_auth_checks_with_empty_state_map: bool,
pub consider_conflicted_state_subgraph: bool,
}
Expand description
The tweaks in the state resolution v2 algorithm for a room version.
This type can be constructed from one of its constants (like StateResolutionV2Rules::V2_0
),
or by constructing a RoomVersionRules
first and using the state_res
field (if the room
version uses version 2 of the state resolution algorithm).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.begin_iterative_auth_checks_with_empty_state_map: bool
Whether to begin the first phase of iterative auth checks with an empty state map, as opposed to one containing the unconflicted state, enabled since room version 12.
consider_conflicted_state_subgraph: bool
Whether to include the conflicted state subgraph in the full conflicted state, enabled since room version 12.
Implementations§
Source§impl StateResolutionV2Rules
impl StateResolutionV2Rules
Sourcepub const V2_0: StateResolutionV2Rules
Available on crate feature events
only.
pub const V2_0: StateResolutionV2Rules
events
only.The first version of the second iteration of the state resolution algorithm, introduced in room version 2.
Sourcepub const V2_1: StateResolutionV2Rules
Available on crate feature events
only.
pub const V2_1: StateResolutionV2Rules
events
only.The second version of the second iteration of the state resolution algorithm, introduced in room version 12.
Trait Implementations§
Source§impl Clone for StateResolutionV2Rules
impl Clone for StateResolutionV2Rules
Source§fn clone(&self) -> StateResolutionV2Rules
fn clone(&self) -> StateResolutionV2Rules
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StateResolutionV2Rules
impl Debug for StateResolutionV2Rules
Source§impl PartialEq for StateResolutionV2Rules
impl PartialEq for StateResolutionV2Rules
impl Copy for StateResolutionV2Rules
impl Eq for StateResolutionV2Rules
impl StructuralPartialEq for StateResolutionV2Rules
Auto Trait Implementations§
impl Freeze for StateResolutionV2Rules
impl RefUnwindSafe for StateResolutionV2Rules
impl Send for StateResolutionV2Rules
impl Sync for StateResolutionV2Rules
impl Unpin for StateResolutionV2Rules
impl UnwindSafe for StateResolutionV2Rules
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
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
key
and return true
if they are equal.