pub enum StateChangeResult<ID, C>where
ID: IdentityHandle,
C: Conditions,{
Ok {
state: HashMap<ID, GroupMembersState<GroupMember<ID>, C>>,
},
Error {
state: HashMap<ID, GroupMembersState<GroupMember<ID>, C>>,
error: GroupMembershipError<GroupMember<ID>>,
},
Filtered {
state: HashMap<ID, GroupMembersState<GroupMember<ID>, C>>,
},
}Expand description
Return types expected from applying an action to group state.
Variants§
Ok
Action was applied and no error occurred.
Fields
§
state: HashMap<ID, GroupMembersState<GroupMember<ID>, C>>Error
Action was not applied because it failed internal validation.
Fields
§
state: HashMap<ID, GroupMembersState<GroupMember<ID>, C>>§
error: GroupMembershipError<GroupMember<ID>>Filtered
Action was not applied because it has been filtered out.
Fields
§
state: HashMap<ID, GroupMembersState<GroupMember<ID>, C>>Implementations§
Source§impl<ID, C> StateChangeResult<ID, C>where
ID: IdentityHandle,
C: Conditions,
impl<ID, C> StateChangeResult<ID, C>where
ID: IdentityHandle,
C: Conditions,
pub fn state(&self) -> &HashMap<ID, GroupMembersState<GroupMember<ID>, C>>
Auto Trait Implementations§
impl<ID, C> Freeze for StateChangeResult<ID, C>where
ID: Freeze,
impl<ID, C> RefUnwindSafe for StateChangeResult<ID, C>where
ID: RefUnwindSafe,
C: RefUnwindSafe,
impl<ID, C> Send for StateChangeResult<ID, C>
impl<ID, C> Sync for StateChangeResult<ID, C>
impl<ID, C> Unpin for StateChangeResult<ID, C>
impl<ID, C> UnwindSafe for StateChangeResult<ID, C>where
ID: UnwindSafe,
C: UnwindSafe,
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