pub enum GroupCrdtError<ID, OP, M, C, RS>{
Inner(GroupCrdtInnerError<OP>),
DuplicateOperation(OP, ID),
GroupCycle(ID, ID, OP),
StateChangeError(OP, GroupMembershipError<GroupMember<ID>>),
ManagerGroupsNotAllowed(ID),
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)
Resolver(RS::Error)
Trait Implementations§
Source§impl<ID, OP, M: Debug, C: Debug, RS> Debug for GroupCrdtError<ID, OP, M, C, RS>where
ID: IdentityHandle + Debug,
OP: OperationId + Ord + Debug,
RS: Resolver<ID, OP, M, C> + Debug,
RS::Error: Debug,
impl<ID, OP, M: Debug, C: Debug, RS> Debug for GroupCrdtError<ID, OP, M, C, RS>where
ID: IdentityHandle + Debug,
OP: OperationId + Ord + Debug,
RS: Resolver<ID, OP, M, C> + Debug,
RS::Error: Debug,
Source§impl<ID, OP, M, C, RS> Display for GroupCrdtError<ID, OP, M, C, RS>where
ID: IdentityHandle + Display,
OP: OperationId + Ord + Display,
RS: Resolver<ID, OP, M, C>,
GroupCrdtInnerError<OP>: Display,
GroupMembershipError<GroupMember<ID>>: Debug,
RS::Error: Display,
impl<ID, OP, M, C, RS> Display for GroupCrdtError<ID, OP, M, C, RS>where
ID: IdentityHandle + Display,
OP: OperationId + Ord + Display,
RS: Resolver<ID, OP, M, C>,
GroupCrdtInnerError<OP>: Display,
GroupMembershipError<GroupMember<ID>>: Debug,
RS::Error: Display,
Source§impl<ID, OP, M, C, RS> Error for GroupCrdtError<ID, OP, M, C, RS>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, M, C>,
GroupCrdtInnerError<OP>: Error,
Self: Debug + Display,
impl<ID, OP, M, C, RS> Error for GroupCrdtError<ID, OP, M, C, RS>where
ID: IdentityHandle,
OP: OperationId + Ord,
RS: Resolver<ID, OP, M, C>,
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, M, C, RS> From<GroupCrdtInnerError<OP>> for GroupCrdtError<ID, OP, M, C, RS>
impl<ID, OP, M, C, RS> From<GroupCrdtInnerError<OP>> for GroupCrdtError<ID, OP, M, C, RS>
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, M, C, RS> Freeze for GroupCrdtError<ID, OP, M, C, RS>
impl<ID, OP, M, C, RS> RefUnwindSafe for GroupCrdtError<ID, OP, M, C, RS>
impl<ID, OP, M, C, RS> Send for GroupCrdtError<ID, OP, M, C, RS>
impl<ID, OP, M, C, RS> Sync for GroupCrdtError<ID, OP, M, C, RS>
impl<ID, OP, M, C, RS> Unpin for GroupCrdtError<ID, OP, M, C, RS>
impl<ID, OP, M, C, RS> UnsafeUnpin for GroupCrdtError<ID, OP, M, C, RS>
impl<ID, OP, M, C, RS> UnwindSafe for GroupCrdtError<ID, OP, M, C, RS>
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