GroupCrdtError

Enum GroupCrdtError 

Source
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>
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, ORD::Error: Debug, RS::Error: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<ID, OP, C, RS, ORD> Display for GroupCrdtError<ID, OP, C, RS, ORD>

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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,

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
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,

Source§

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,

Source§

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>
where OP: Freeze, ID: Freeze, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Freeze, <RS as Resolver<ID, OP, C, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation>>::Error: Freeze,

§

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>
where OP: Send, ID: Send, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Send, <RS as Resolver<ID, OP, C, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation>>::Error: Send,

§

impl<ID, OP, C, RS, ORD> Sync for GroupCrdtError<ID, OP, C, RS, ORD>
where OP: Sync, ID: Sync, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Sync, <RS as Resolver<ID, OP, C, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation>>::Error: Sync,

§

impl<ID, OP, C, RS, ORD> Unpin for GroupCrdtError<ID, OP, C, RS, ORD>
where OP: Unpin, ID: Unpin, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Error: Unpin, <RS as Resolver<ID, OP, C, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation>>::Error: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V