pub struct UnionStateKind;Expand description
Marker kind for generated union state markers.
This is the kind assigned by StateUnion!.
Union markers are accepted as borrowed views and generic receiver bounds,
but they are not valid committed states in shared storage. Shared storage
commits the concrete member marker and checks union borrows against it.
Trait Implementations§
Source§impl StateKind for UnionStateKind
impl StateKind for UnionStateKind
Source§type RuntimeState<Marker> = <Marker as StateRuntimeMarkerFor<UnionStateKind>>::RuntimeState
where
Marker: StateRuntimeMarkerFor<Self>
type RuntimeState<Marker> = <Marker as StateRuntimeMarkerFor<UnionStateKind>>::RuntimeState where Marker: StateRuntimeMarkerFor<Self>
Runtime marker actually checked by shared storage for this kind. Read more
Source§type Proof<T, From, Marker, To> = StateUnionTransitionProof<T, From, Marker, To>
where
T: StateMachineImpl,
From: StateTrait + StateMarker<Kind = Self>,
Marker: StateUnionDiscriminant,
To: StateTrait + StateMarker<Kind = ConcreteStateKind>
type Proof<T, From, Marker, To> = StateUnionTransitionProof<T, From, Marker, To> where T: StateMachineImpl, From: StateTrait + StateMarker<Kind = Self>, Marker: StateUnionDiscriminant, To: StateTrait + StateMarker<Kind = ConcreteStateKind>
Proof type used by generated transition helpers for this kind. Read more
Auto Trait Implementations§
impl Freeze for UnionStateKind
impl RefUnwindSafe for UnionStateKind
impl Send for UnionStateKind
impl StateClone for UnionStateKind
impl StateCopy for UnionStateKind
impl Sync for UnionStateKind
impl Unpin for UnionStateKind
impl UnsafeUnpin for UnionStateKind
impl UnwindSafe for UnionStateKind
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