pub enum GroupWriteCommand {
Stream(StreamCommand),
Batch {
commands: Vec<StreamCommand>,
},
Transaction {
commands: Vec<StreamCommand>,
},
}Expand description
Replicated group-level write envelope around the canonical
StreamCommand: one command, a throughput batch with independent item
results, or an all-or-none append transaction. Batch and transaction
envelopes each occupy one Raft entry. This enum (serde-encoded) is the Raft
log payload; there is no separate wire mirror.
Variants§
Stream(StreamCommand)
Batch
Fields
§
commands: Vec<StreamCommand>Transaction
Fields
§
commands: Vec<StreamCommand>Trait Implementations§
Source§impl Clone for GroupWriteCommand
impl Clone for GroupWriteCommand
Source§fn clone(&self) -> GroupWriteCommand
fn clone(&self) -> GroupWriteCommand
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 Debug for GroupWriteCommand
impl Debug for GroupWriteCommand
Source§impl<'de> Deserialize<'de> for GroupWriteCommand
impl<'de> Deserialize<'de> for GroupWriteCommand
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
Source§impl Display for GroupWriteCommand
impl Display for GroupWriteCommand
impl Eq for GroupWriteCommand
Source§impl From<AdvanceRetentionRequest> for GroupWriteCommand
impl From<AdvanceRetentionRequest> for GroupWriteCommand
Source§fn from(request: AdvanceRetentionRequest) -> Self
fn from(request: AdvanceRetentionRequest) -> Self
Converts to this type from the input type.
Source§impl From<AppendBatchRequest> for GroupWriteCommand
impl From<AppendBatchRequest> for GroupWriteCommand
Source§fn from(request: AppendBatchRequest) -> Self
fn from(request: AppendBatchRequest) -> Self
Converts to this type from the input type.
Source§impl From<AppendExternalRequest> for GroupWriteCommand
impl From<AppendExternalRequest> for GroupWriteCommand
Source§fn from(request: AppendExternalRequest) -> Self
fn from(request: AppendExternalRequest) -> Self
Converts to this type from the input type.
Source§impl From<AppendRequest> for GroupWriteCommand
impl From<AppendRequest> for GroupWriteCommand
Source§fn from(request: AppendRequest) -> Self
fn from(request: AppendRequest) -> Self
Converts to this type from the input type.
Source§impl From<CloseStreamRequest> for GroupWriteCommand
impl From<CloseStreamRequest> for GroupWriteCommand
Source§fn from(request: CloseStreamRequest) -> Self
fn from(request: CloseStreamRequest) -> Self
Converts to this type from the input type.
Source§impl From<CompactColdRequest> for GroupWriteCommand
impl From<CompactColdRequest> for GroupWriteCommand
Source§fn from(request: CompactColdRequest) -> Self
fn from(request: CompactColdRequest) -> Self
Converts to this type from the input type.
Source§impl From<CreateStreamExternalRequest> for GroupWriteCommand
impl From<CreateStreamExternalRequest> for GroupWriteCommand
Source§fn from(request: CreateStreamExternalRequest) -> Self
fn from(request: CreateStreamExternalRequest) -> Self
Converts to this type from the input type.
Source§impl From<CreateStreamRequest> for GroupWriteCommand
impl From<CreateStreamRequest> for GroupWriteCommand
Source§fn from(request: CreateStreamRequest) -> Self
fn from(request: CreateStreamRequest) -> Self
Converts to this type from the input type.
Source§impl From<DeleteStreamRequest> for GroupWriteCommand
impl From<DeleteStreamRequest> for GroupWriteCommand
Source§fn from(request: DeleteStreamRequest) -> Self
fn from(request: DeleteStreamRequest) -> Self
Converts to this type from the input type.
Source§impl From<FlushColdRequest> for GroupWriteCommand
impl From<FlushColdRequest> for GroupWriteCommand
Source§fn from(request: FlushColdRequest) -> Self
fn from(request: FlushColdRequest) -> Self
Converts to this type from the input type.
Source§impl From<PublishSnapshotRequest> for GroupWriteCommand
impl From<PublishSnapshotRequest> for GroupWriteCommand
Source§fn from(request: PublishSnapshotRequest) -> Self
fn from(request: PublishSnapshotRequest) -> Self
Converts to this type from the input type.
Source§impl From<SetBucketQuotaRequest> for GroupWriteCommand
impl From<SetBucketQuotaRequest> for GroupWriteCommand
Source§fn from(request: SetBucketQuotaRequest) -> Self
fn from(request: SetBucketQuotaRequest) -> Self
Converts to this type from the input type.
Source§impl From<StreamCommand> for GroupWriteCommand
impl From<StreamCommand> for GroupWriteCommand
Source§fn from(command: StreamCommand) -> Self
fn from(command: StreamCommand) -> Self
Converts to this type from the input type.
Source§impl From<UpdateStreamAttrsRequest> for GroupWriteCommand
impl From<UpdateStreamAttrsRequest> for GroupWriteCommand
Source§fn from(request: UpdateStreamAttrsRequest) -> Self
fn from(request: UpdateStreamAttrsRequest) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GroupWriteCommand
impl PartialEq for GroupWriteCommand
Source§impl Serialize for GroupWriteCommand
impl Serialize for GroupWriteCommand
impl StructuralPartialEq for GroupWriteCommand
Auto Trait Implementations§
impl !Freeze for GroupWriteCommand
impl RefUnwindSafe for GroupWriteCommand
impl Send for GroupWriteCommand
impl Sync for GroupWriteCommand
impl Unpin for GroupWriteCommand
impl UnsafeUnpin for GroupWriteCommand
impl UnwindSafe for GroupWriteCommand
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