pub enum GroupError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD, GS>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>>,
GS: GroupStore<ID, OP, C, RS, ORD>,{
Group(GroupCrdtError<ID, OP, C, RS, ORD, GS>),
EmptyGroup,
GroupMember(ID, ID),
NotGroupMember(ID, ID),
InsufficientAccess(ID, Access<C>, ID),
SameAccessLevel(ID, Access<C>, ID),
}Expand description
All possible errors that can occur when creating or updating a group.
Variants§
Group(GroupCrdtError<ID, OP, C, RS, ORD, GS>)
EmptyGroup
GroupMember(ID, ID)
NotGroupMember(ID, ID)
InsufficientAccess(ID, Access<C>, ID)
SameAccessLevel(ID, Access<C>, ID)
Trait Implementations§
Source§impl<ID, OP, C: Debug, RS, ORD, GS> Debug for GroupError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle + Debug,
OP: OperationId + Ord + Debug,
RS: Resolver<ID, OP, C, ORD, GS> + Debug,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,
GS: GroupStore<ID, OP, C, RS, ORD> + Debug,
impl<ID, OP, C: Debug, RS, ORD, GS> Debug for GroupError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle + Debug,
OP: OperationId + Ord + Debug,
RS: Resolver<ID, OP, C, ORD, GS> + Debug,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,
GS: GroupStore<ID, OP, C, RS, ORD> + Debug,
Source§impl<ID, OP, C, RS, ORD, GS> Display for GroupError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle + Display,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD, GS>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>>,
GS: GroupStore<ID, OP, C, RS, ORD>,
GroupCrdtError<ID, OP, C, RS, ORD, GS>: Display,
Access<C>: Display,
impl<ID, OP, C, RS, ORD, GS> Display for GroupError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle + Display,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD, GS>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>>,
GS: GroupStore<ID, OP, C, RS, ORD>,
GroupCrdtError<ID, OP, C, RS, ORD, GS>: Display,
Access<C>: Display,
Source§impl<ID, OP, C, RS, ORD, GS> Error for GroupError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD, GS>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>>,
GS: GroupStore<ID, OP, C, RS, ORD>,
GroupCrdtError<ID, OP, C, RS, ORD, GS>: Error,
Self: Debug + Display,
impl<ID, OP, C, RS, ORD, GS> Error for GroupError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD, GS>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>>,
GS: GroupStore<ID, OP, C, RS, ORD>,
GroupCrdtError<ID, OP, C, RS, ORD, GS>: 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, GS> From<GroupCrdtError<ID, OP, C, RS, ORD, GS>> for GroupError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD, GS>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>>,
GS: GroupStore<ID, OP, C, RS, ORD>,
impl<ID, OP, C, RS, ORD, GS> From<GroupCrdtError<ID, OP, C, RS, ORD, GS>> for GroupError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, C, ORD, GS>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>>,
GS: GroupStore<ID, OP, C, RS, ORD>,
Source§fn from(source: GroupCrdtError<ID, OP, C, RS, ORD, GS>) -> Self
fn from(source: GroupCrdtError<ID, OP, C, RS, ORD, GS>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<ID, OP, C, RS, ORD, GS> Freeze for GroupError<ID, OP, C, RS, ORD, GS>where
ID: Freeze,
OP: Freeze,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Freeze,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: Freeze,
C: Freeze,
impl<ID, OP, C, RS, ORD, GS> RefUnwindSafe for GroupError<ID, OP, C, RS, ORD, GS>where
ID: RefUnwindSafe,
OP: RefUnwindSafe,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: RefUnwindSafe,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: RefUnwindSafe,
C: RefUnwindSafe,
impl<ID, OP, C, RS, ORD, GS> Send for GroupError<ID, OP, C, RS, ORD, GS>where
ID: Send,
OP: Send,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Send,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: Send,
C: Send,
impl<ID, OP, C, RS, ORD, GS> Sync for GroupError<ID, OP, C, RS, ORD, GS>where
ID: Sync,
OP: Sync,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Sync,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: Sync,
C: Sync,
impl<ID, OP, C, RS, ORD, GS> Unpin for GroupError<ID, OP, C, RS, ORD, GS>where
ID: Unpin,
OP: Unpin,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Unpin,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: Unpin,
C: Unpin,
impl<ID, OP, C, RS, ORD, GS> UnwindSafe for GroupError<ID, OP, C, RS, ORD, GS>where
ID: UnwindSafe,
OP: UnwindSafe,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: UnwindSafe,
<GS as GroupStore<ID, OP, C, RS, ORD>>::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