pub enum DispatchImpact {
Unchanged,
Changed {
conversation_id: ConversationId,
effects: BTreeMap<DispatchEffect, BTreeSet<DispatchTarget>>,
},
}Expand description
Complete request-level post-commit dispatch impact.
Variants§
Unchanged
No committed subcommit changed dispatch permission.
Changed
At least one truthful effect occurred for one conversation.
Fields
§
conversation_id: ConversationIdConversation whose locked authority produced the effects.
§
effects: BTreeMap<DispatchEffect, BTreeSet<DispatchTarget>>Nonempty effect map. Individual truthful effects may have no current binding target.
Implementations§
Source§impl DispatchImpact
impl DispatchImpact
Sourcepub const fn conversation_id(&self) -> Option<ConversationId>
pub const fn conversation_id(&self) -> Option<ConversationId>
Returns the changed conversation, if any.
Sourcepub const fn effects(
&self,
) -> Option<&BTreeMap<DispatchEffect, BTreeSet<DispatchTarget>>>
pub const fn effects( &self, ) -> Option<&BTreeMap<DispatchEffect, BTreeSet<DispatchTarget>>>
Returns the effect map for a changed impact.
Sourcepub fn target_union(&self) -> BTreeSet<DispatchTarget>
pub fn target_union(&self) -> BTreeSet<DispatchTarget>
Unions and deduplicates all exact targets without applying effect precedence.
Trait Implementations§
Source§impl Clone for DispatchImpact
impl Clone for DispatchImpact
Source§fn clone(&self) -> DispatchImpact
fn clone(&self) -> DispatchImpact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DispatchImpact
impl Debug for DispatchImpact
impl Eq for DispatchImpact
Source§impl PartialEq for DispatchImpact
impl PartialEq for DispatchImpact
impl StructuralPartialEq for DispatchImpact
Auto Trait Implementations§
impl Freeze for DispatchImpact
impl RefUnwindSafe for DispatchImpact
impl Send for DispatchImpact
impl Sync for DispatchImpact
impl Unpin for DispatchImpact
impl UnsafeUnpin for DispatchImpact
impl UnwindSafe for DispatchImpact
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.