pub enum GroupCrdtError<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,{
Inner(GroupCrdtInnerError<OP>),
DuplicateOperation(OP, ID),
GroupCycle(ID, ID, OP),
StateChangeError(OP, GroupMembershipError<GroupMember<ID>>),
ManagerGroupsNotAllowed(ID),
Orderer(ORD::Error),
Resolver(RS::Error),
}Expand description
Error types for GroupCrdt.
Variants§
Inner(GroupCrdtInnerError<OP>)
DuplicateOperation(OP, ID)
GroupCycle(ID, ID, OP)
StateChangeError(OP, GroupMembershipError<GroupMember<ID>>)
ManagerGroupsNotAllowed(ID)
Orderer(ORD::Error)
Resolver(RS::Error)
Trait Implementations§
Source§impl<ID, OP, C: Debug, RS, ORD> Debug for GroupCrdtError<ID, OP, C, RS, ORD>
impl<ID, OP, C: Debug, RS, ORD> Debug for GroupCrdtError<ID, OP, C, RS, ORD>
Source§impl<ID, OP, C, RS, ORD> Display for GroupCrdtError<ID, OP, C, RS, ORD>where
ID: IdentityHandle + Display,
OP: OperationId + Ord + Display,
RS: Resolver<ID, OP, C, ORD::Operation>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,
GroupCrdtInnerError<OP>: Display,
GroupMembershipError<GroupMember<ID>>: Debug,
ORD::Error: Display,
RS::Error: Display,
impl<ID, OP, C, RS, ORD> Display for GroupCrdtError<ID, OP, C, RS, ORD>where
ID: IdentityHandle + Display,
OP: OperationId + Ord + Display,
RS: Resolver<ID, OP, C, ORD::Operation>,
ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug,
GroupCrdtInnerError<OP>: Display,
GroupMembershipError<GroupMember<ID>>: Debug,
ORD::Error: Display,
RS::Error: Display,
Source§impl<ID, OP, C, RS, ORD> Error for GroupCrdtError<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,
GroupCrdtInnerError<OP>: Error,
Self: Debug + Display,
impl<ID, OP, C, RS, ORD> Error for GroupCrdtError<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,
GroupCrdtInnerError<OP>: 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.
Source§impl<ID, OP, C, RS, ORD> From<GroupCrdtInnerError<OP>> for GroupCrdtError<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<GroupCrdtInnerError<OP>> for GroupCrdtError<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: GroupCrdtInnerError<OP>) -> Self
fn from(source: GroupCrdtInnerError<OP>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<ID, OP, C, RS, ORD> Freeze for GroupCrdtError<ID, OP, C, RS, ORD>
impl<ID, OP, C, RS, ORD> RefUnwindSafe for GroupCrdtError<ID, OP, C, RS, ORD>where
OP: RefUnwindSafe,
ID: 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,
impl<ID, OP, C, RS, ORD> Send for GroupCrdtError<ID, OP, C, RS, ORD>
impl<ID, OP, C, RS, ORD> Sync for GroupCrdtError<ID, OP, C, RS, ORD>
impl<ID, OP, C, RS, ORD> Unpin for GroupCrdtError<ID, OP, C, RS, ORD>
impl<ID, OP, C, RS, ORD> UnwindSafe for GroupCrdtError<ID, OP, C, RS, ORD>where
OP: UnwindSafe,
ID: 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,
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