StateChangeResult

Enum StateChangeResult 

Source
pub enum StateChangeResult<ID, OP, C, RS, ORD, GS>
where ID: IdentityHandle + Display, OP: OperationId + Ord + Display, C: Clone + Debug + PartialEq + PartialOrd, RS: Resolver<ID, OP, C, ORD, GS> + Debug, ORD: Orderer<ID, OP, GroupControlMessage<ID, C>> + Debug, ORD::Operation: Clone, GS: GroupStore<ID, OP, C, RS, ORD> + Clone + Debug,
{ Ok { state: GroupCrdtState<ID, OP, C, RS, ORD, GS>, }, Noop { state: GroupCrdtState<ID, OP, C, RS, ORD, GS>, error: GroupMembershipError<GroupMember<ID>>, }, Filtered { state: GroupCrdtState<ID, OP, C, RS, ORD, GS>, }, }
Expand description

Return types expected from applying an action to group state.

Variants§

§

Ok

Action was applied and no error occurred.

Fields

§state: GroupCrdtState<ID, OP, C, RS, ORD, GS>
§

Noop

Action was not applied because it failed internal validation.

Fields

§state: GroupCrdtState<ID, OP, C, RS, ORD, GS>
§

Filtered

Action was not applied because it has been filtered out.

Fields

§state: GroupCrdtState<ID, OP, C, RS, ORD, GS>

Auto Trait Implementations§

§

impl<ID, OP, C, RS, ORD, GS> Freeze for StateChangeResult<ID, OP, C, RS, ORD, GS>
where <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation: Sized, ID: Freeze, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::State: Freeze, GS: Freeze,

§

impl<ID, OP, C, RS, ORD, GS> RefUnwindSafe for StateChangeResult<ID, OP, C, RS, ORD, GS>

§

impl<ID, OP, C, RS, ORD, GS> Send for StateChangeResult<ID, OP, C, RS, ORD, GS>
where <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation: Sized + Send, ID: Send, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::State: Send, GS: Send, RS: Send, OP: Send, C: Send,

§

impl<ID, OP, C, RS, ORD, GS> Sync for StateChangeResult<ID, OP, C, RS, ORD, GS>
where <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation: Sized + Sync, ID: Sync, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::State: Sync, GS: Sync, RS: Sync, OP: Sync, C: Sync,

§

impl<ID, OP, C, RS, ORD, GS> Unpin for StateChangeResult<ID, OP, C, RS, ORD, GS>
where <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation: Sized + Unpin, ID: Unpin, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::State: Unpin, GS: Unpin, RS: Unpin, OP: Unpin, C: Unpin,

§

impl<ID, OP, C, RS, ORD, GS> UnwindSafe for StateChangeResult<ID, OP, C, RS, ORD, GS>
where <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::Operation: Sized + UnwindSafe, ID: UnwindSafe, <ORD as Orderer<ID, OP, GroupControlMessage<ID, C>>>::State: UnwindSafe, GS: UnwindSafe, OP: UnwindSafe, RS: UnwindSafe, C: 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, 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