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> Clone for CommandBatch<C>
impl<C: Clone> Clone for CommandBatch<C>
Source§impl<C: Debug> Debug for CommandBatch<C>
impl<C: Debug> Debug for CommandBatch<C>
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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<C: Eq> Eq for CommandBatch<C>
Source§impl<C: PartialEq> PartialEq for CommandBatch<C>
impl<C: PartialEq> PartialEq for CommandBatch<C>
Source§impl<C> Serialize for CommandBatch<C>where
C: Serialize,
impl<C> Serialize for CommandBatch<C>where
C: Serialize,
impl<C: PartialEq> StructuralPartialEq for CommandBatch<C>
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.