pub enum GroupCrdtError<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>,{
DuplicateOperation(OP, ID),
StateChangeError(OP, GroupMembershipError<GroupMember<ID>>),
MissingSubGroup(ID),
OrderingError(ORD::Error),
GroupStoreError(GS::Error),
StatesNotFound(Vec<OP>, ID),
DependenciesNotFound(Vec<OP>, ID),
IncorrectGroupId(ID, ID),
MissingOperation(OP),
MemberNotFound(ID, ID),
}Expand description
Error types for GroupCrdt.
Variants§
DuplicateOperation(OP, ID)
StateChangeError(OP, GroupMembershipError<GroupMember<ID>>)
MissingSubGroup(ID)
OrderingError(ORD::Error)
GroupStoreError(GS::Error)
StatesNotFound(Vec<OP>, ID)
DependenciesNotFound(Vec<OP>, ID)
IncorrectGroupId(ID, ID)
MissingOperation(OP)
MemberNotFound(ID, ID)
Trait Implementations§
Source§impl<ID, OP, C: Debug, RS, ORD, GS> Debug for GroupCrdtError<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,
ORD::Error: Debug,
GS::Error: Debug,
impl<ID, OP, C: Debug, RS, ORD, GS> Debug for GroupCrdtError<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,
ORD::Error: Debug,
GS::Error: Debug,
Source§impl<ID, OP, C, RS, ORD, GS> Display for GroupCrdtError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle + Display,
OP: OperationId + Ord + Display,
RS: Resolver<ID, OP, C, ORD, GS>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>>,
GS: GroupStore<ID, OP, C, RS, ORD>,
GroupMembershipError<GroupMember<ID>>: Debug,
ORD::Error: Display,
GS::Error: Display,
Vec<OP>: Debug,
impl<ID, OP, C, RS, ORD, GS> Display for GroupCrdtError<ID, OP, C, RS, ORD, GS>where
ID: IdentityHandle + Display,
OP: OperationId + Ord + Display,
RS: Resolver<ID, OP, C, ORD, GS>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>>,
GS: GroupStore<ID, OP, C, RS, ORD>,
GroupMembershipError<GroupMember<ID>>: Debug,
ORD::Error: Display,
GS::Error: Display,
Vec<OP>: Debug,
Source§impl<ID, OP, C, RS, ORD, GS> Error for GroupCrdtError<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>,
Self: Debug + Display,
impl<ID, OP, C, RS, ORD, GS> Error for GroupCrdtError<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>,
Self: Debug + Display,
1.30.0 · 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 GroupCrdtError<ID, OP, C, RS, ORD, GS>where
OP: Freeze,
ID: Freeze,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Freeze,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: Freeze,
impl<ID, OP, C, RS, ORD, GS> RefUnwindSafe for GroupCrdtError<ID, OP, C, RS, ORD, GS>where
OP: RefUnwindSafe,
ID: RefUnwindSafe,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: RefUnwindSafe,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: RefUnwindSafe,
impl<ID, OP, C, RS, ORD, GS> Send for GroupCrdtError<ID, OP, C, RS, ORD, GS>where
OP: Send,
ID: Send,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Send,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: Send,
impl<ID, OP, C, RS, ORD, GS> Sync for GroupCrdtError<ID, OP, C, RS, ORD, GS>where
OP: Sync,
ID: Sync,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Sync,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: Sync,
impl<ID, OP, C, RS, ORD, GS> Unpin for GroupCrdtError<ID, OP, C, RS, ORD, GS>where
OP: Unpin,
ID: Unpin,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Unpin,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: Unpin,
impl<ID, OP, C, RS, ORD, GS> UnwindSafe for GroupCrdtError<ID, OP, C, RS, ORD, GS>where
OP: UnwindSafe,
ID: UnwindSafe,
<ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: UnwindSafe,
<GS as GroupStore<ID, OP, C, RS, ORD>>::Error: 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