pub struct CommandBatch<C> {
pub batch_id: BatchId,
pub scope: AtomicityScope,
pub envelopes: Vec<CommandEnvelope<C>>,
}Expand description
A group of envelopes executed under one atomicity scope.
Fields§
§batch_id: BatchIdIdentifier of the batch.
scope: AtomicityScopeScope under which the envelopes commit.
envelopes: Vec<CommandEnvelope<C>>The envelopes, in execution order.
Implementations§
Source§impl<C> CommandBatch<C>
impl<C> CommandBatch<C>
Sourcepub fn is_single_case(&self) -> bool
pub fn is_single_case(&self) -> bool
Returns true when every envelope targets the same case (required for
AtomicityScope::PerCase).
Trait Implementations§
Source§impl<C> Clone for CommandBatch<C>where
C: Clone,
impl<C> Clone for CommandBatch<C>where
C: Clone,
Source§fn clone(&self) -> CommandBatch<C>
fn clone(&self) -> CommandBatch<C>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C> Debug for CommandBatch<C>where
C: Debug,
impl<C> Debug for CommandBatch<C>where
C: Debug,
Source§impl<'de, C> Deserialize<'de> for CommandBatch<C>where
C: Deserialize<'de>,
impl<'de, C> Deserialize<'de> for CommandBatch<C>where
C: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandBatch<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandBatch<C>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<C> Eq for CommandBatch<C>where
C: Eq,
Source§impl<C> PartialEq for CommandBatch<C>where
C: PartialEq,
impl<C> PartialEq for CommandBatch<C>where
C: PartialEq,
Source§impl<C> Serialize for CommandBatch<C>where
C: Serialize,
impl<C> Serialize for CommandBatch<C>where
C: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<C> StructuralPartialEq for CommandBatch<C>where
C: PartialEq,
Auto Trait Implementations§
impl<C> Freeze for CommandBatch<C>
impl<C> RefUnwindSafe for CommandBatch<C>
impl<C> Send for CommandBatch<C>
impl<C> Sync for CommandBatch<C>
impl<C> Unpin for CommandBatch<C>
impl<C> UnsafeUnpin for CommandBatch<C>
impl<C> UnwindSafe for CommandBatch<C>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.