GroupCrdtError

Enum GroupCrdtError 

Source
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,

Source§

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

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

Source§

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

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

1.30.0 · 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, 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

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> 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