pub enum StreamCommand {
Show 14 variants
CreateBucket {
bucket_id: String,
},
DeleteBucket {
bucket_id: String,
},
CreateStream {
stream_id: BucketStreamId,
content_type: String,
initial_payload: Bytes,
close_after: bool,
stream_seq: Option<String>,
producer: Option<ProducerRequest>,
stream_ttl_seconds: Option<u64>,
stream_expires_at_ms: Option<u64>,
attrs: Option<StreamAttrs>,
now_ms: u64,
},
CreateExternal {
stream_id: BucketStreamId,
content_type: String,
initial_payload: ExternalPayloadRef,
record_ends: Vec<u64>,
close_after: bool,
stream_seq: Option<String>,
producer: Option<ProducerRequest>,
stream_ttl_seconds: Option<u64>,
stream_expires_at_ms: Option<u64>,
attrs: Option<StreamAttrs>,
now_ms: u64,
},
Append {
stream_id: BucketStreamId,
content_type: Option<String>,
payload: Bytes,
close_after: bool,
stream_seq: Option<String>,
producer: Option<ProducerRequest>,
now_ms: u64,
record_match: Option<u64>,
},
AppendExternal {
stream_id: BucketStreamId,
content_type: Option<String>,
payload: ExternalPayloadRef,
record_ends: Vec<u64>,
close_after: bool,
stream_seq: Option<String>,
producer: Option<ProducerRequest>,
now_ms: u64,
record_match: Option<u64>,
},
AppendBatch {
stream_id: BucketStreamId,
content_type: Option<String>,
payloads: Vec<Bytes>,
producer: Option<ProducerRequest>,
now_ms: u64,
},
PublishSnapshot {
stream_id: BucketStreamId,
snapshot_offset: u64,
content_type: String,
payload: Bytes,
now_ms: u64,
},
TouchStreamAccess {
stream_id: BucketStreamId,
now_ms: u64,
renew_ttl: bool,
},
UpdateStreamAttrs {
stream_id: BucketStreamId,
attrs: Option<StreamAttrs>,
now_ms: u64,
},
FlushCold {
stream_id: BucketStreamId,
chunk: ColdChunkRef,
},
Close {
stream_id: BucketStreamId,
stream_seq: Option<String>,
producer: Option<ProducerRequest>,
now_ms: u64,
},
DeleteStream {
stream_id: BucketStreamId,
},
AckColdGc {
up_to_seq: u64,
},
}Variants§
CreateBucket
DeleteBucket
CreateStream
CreateExternal
Fields
§
stream_id: BucketStreamId§
initial_payload: ExternalPayloadRef§
producer: Option<ProducerRequest>§
attrs: Option<StreamAttrs>Append
AppendExternal
AppendBatch
PublishSnapshot
Fields
§
stream_id: BucketStreamIdTouchStreamAccess
UpdateStreamAttrs
FlushCold
Close
DeleteStream
Fields
§
stream_id: BucketStreamIdAckColdGc
Confirms the leader’s background worker has physically reclaimed every
queued cold-GC entry with seq <= up_to_seq; removes them from the
replicated queue. Idempotent under replay.
Trait Implementations§
Source§impl Clone for StreamCommand
impl Clone for StreamCommand
Source§fn clone(&self) -> StreamCommand
fn clone(&self) -> StreamCommand
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 StreamCommand
impl Debug for StreamCommand
Source§impl<'de> Deserialize<'de> for StreamCommand
impl<'de> Deserialize<'de> for StreamCommand
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 StreamCommand
impl Display for StreamCommand
impl Eq for StreamCommand
Source§impl PartialEq for StreamCommand
impl PartialEq for StreamCommand
Source§impl Serialize for StreamCommand
impl Serialize for StreamCommand
impl StructuralPartialEq for StreamCommand
Auto Trait Implementations§
impl !Freeze for StreamCommand
impl RefUnwindSafe for StreamCommand
impl Send for StreamCommand
impl Sync for StreamCommand
impl Unpin for StreamCommand
impl UnsafeUnpin for StreamCommand
impl UnwindSafe for StreamCommand
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