#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
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§
Trait Implementations§
Source§impl Clone for StateResolutionV2Rules
impl Clone for StateResolutionV2Rules
Source§fn clone(&self) -> StateResolutionV2Rules
fn clone(&self) -> StateResolutionV2Rules
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 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
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.