pub enum GroupsError<ID, OP, C, RS, ORD>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD::Operation>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,{
Group(GroupCrdtError<ID, OP, C, RS, ORD>),
EmptyGroup,
GroupMember(ID, ID),
NotGroupMember(ID, ID),
InsufficientAccess(ID, Access<C>, ID),
SameAccessLevel(ID, Access<C>, ID),
MemberNotFound(ID, ID),
}Expand description
All possible errors that can occur when creating or updating a group.
Variants§
Group(GroupCrdtError<ID, OP, C, RS, ORD>)
EmptyGroup
GroupMember(ID, ID)
NotGroupMember(ID, ID)
InsufficientAccess(ID, Access<C>, ID)
SameAccessLevel(ID, Access<C>, ID)
MemberNotFound(ID, ID)
Trait Implementations§
Source§impl<ID, OP, C: Debug, RS, ORD> Debug for GroupsError<ID, OP, C, RS, ORD>where
ID: IdentityHandle + Debug,
OP: OperationId + Ord + Debug,
RS: Resolver<ID, OP, C, ORD::Operation> + Debug,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug + Debug,
impl<ID, OP, C: Debug, RS, ORD> Debug for GroupsError<ID, OP, C, RS, ORD>where
ID: IdentityHandle + Debug,
OP: OperationId + Ord + Debug,
RS: Resolver<ID, OP, C, ORD::Operation> + Debug,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug + Debug,
Source§impl<ID, OP, C, RS, ORD> Display for GroupsError<ID, OP, C, RS, ORD>where
ID: IdentityHandle + Display,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD::Operation>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,
GroupCrdtError<ID, OP, C, RS, ORD>: Display,
Access<C>: Display,
impl<ID, OP, C, RS, ORD> Display for GroupsError<ID, OP, C, RS, ORD>where
ID: IdentityHandle + Display,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD::Operation>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,
GroupCrdtError<ID, OP, C, RS, ORD>: Display,
Access<C>: Display,
Source§impl<ID, OP, C, RS, ORD> Error for GroupsError<ID, OP, C, RS, ORD>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD::Operation>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,
GroupCrdtError<ID, OP, C, RS, ORD>: Error,
Self: Debug + Display,
impl<ID, OP, C, RS, ORD> Error for GroupsError<ID, OP, C, RS, ORD>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD::Operation>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,
GroupCrdtError<ID, OP, C, RS, ORD>: Error,
Self: Debug + Display,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<ID, OP, C, RS, ORD> From<GroupCrdtError<ID, OP, C, RS, ORD>> for GroupsError<ID, OP, C, RS, ORD>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD::Operation>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,
impl<ID, OP, C, RS, ORD> From<GroupCrdtError<ID, OP, C, RS, ORD>> for GroupsError<ID, OP, C, RS, ORD>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD::Operation>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,
Source§fn from(source: GroupCrdtError<ID, OP, C, RS, ORD>) -> Self
fn from(source: GroupCrdtError<ID, OP, C, RS, ORD>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<ID, OP, C, RS, ORD> Freeze for GroupsError<ID, OP, C, RS, ORD>
impl<ID, OP, C, RS, ORD> RefUnwindSafe for GroupsError<ID, OP, C, RS, ORD>where
ID: RefUnwindSafe,
OP: RefUnwindSafe,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: RefUnwindSafe,
<RS as Resolver<ID, OP, C, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation>>::Error: RefUnwindSafe,
C: RefUnwindSafe,
impl<ID, OP, C, RS, ORD> Send for GroupsError<ID, OP, C, RS, ORD>
impl<ID, OP, C, RS, ORD> Sync for GroupsError<ID, OP, C, RS, ORD>
impl<ID, OP, C, RS, ORD> Unpin for GroupsError<ID, OP, C, RS, ORD>
impl<ID, OP, C, RS, ORD> UnwindSafe for GroupsError<ID, OP, C, RS, ORD>where
ID: UnwindSafe,
OP: UnwindSafe,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: UnwindSafe,
<RS as Resolver<ID, OP, C, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation>>::Error: 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