pub enum StreamCommand {
Show 14 variants
CreateBucket {
bucket_id: String,
},
DeleteBucket {
bucket_id: String,
},
CreateStream {
stream_id: BucketStreamId,
content_type: String,
initial_payload: Vec<u8>,
close_after: bool,
stream_seq: Option<String>,
producer: Option<ProducerRequest>,
stream_ttl_seconds: Option<u64>,
stream_expires_at_ms: Option<u64>,
forked_from: Option<BucketStreamId>,
fork_offset: Option<u64>,
now_ms: u64,
},
CreateExternal {
stream_id: BucketStreamId,
content_type: String,
initial_payload: ExternalPayloadRef,
close_after: bool,
stream_seq: Option<String>,
producer: Option<ProducerRequest>,
stream_ttl_seconds: Option<u64>,
stream_expires_at_ms: Option<u64>,
forked_from: Option<BucketStreamId>,
fork_offset: Option<u64>,
now_ms: u64,
},
Append {
stream_id: BucketStreamId,
content_type: Option<String>,
payload: Vec<u8>,
close_after: bool,
stream_seq: Option<String>,
producer: Option<ProducerRequest>,
now_ms: u64,
},
AppendExternal {
stream_id: BucketStreamId,
content_type: Option<String>,
payload: ExternalPayloadRef,
close_after: bool,
stream_seq: Option<String>,
producer: Option<ProducerRequest>,
now_ms: u64,
},
AppendBatch {
stream_id: BucketStreamId,
content_type: Option<String>,
payloads: Vec<Vec<u8>>,
producer: Option<ProducerRequest>,
now_ms: u64,
},
PublishSnapshot {
stream_id: BucketStreamId,
snapshot_offset: u64,
content_type: String,
payload: Vec<u8>,
now_ms: u64,
},
TouchStreamAccess {
stream_id: BucketStreamId,
now_ms: u64,
renew_ttl: bool,
},
AddForkRef {
stream_id: BucketStreamId,
now_ms: u64,
},
ReleaseForkRef {
stream_id: BucketStreamId,
},
FlushCold {
stream_id: BucketStreamId,
chunk: ColdChunkRef,
},
Close {
stream_id: BucketStreamId,
stream_seq: Option<String>,
producer: Option<ProducerRequest>,
now_ms: u64,
},
DeleteStream {
stream_id: BucketStreamId,
},
}Variants§
CreateBucket
DeleteBucket
CreateStream
Fields
§
stream_id: BucketStreamId§
producer: Option<ProducerRequest>§
forked_from: Option<BucketStreamId>CreateExternal
Fields
§
stream_id: BucketStreamId§
initial_payload: ExternalPayloadRef§
producer: Option<ProducerRequest>§
forked_from: Option<BucketStreamId>Append
AppendExternal
AppendBatch
PublishSnapshot
Fields
§
stream_id: BucketStreamIdTouchStreamAccess
AddForkRef
ReleaseForkRef
Fields
§
stream_id: BucketStreamIdFlushCold
Close
DeleteStream
Fields
§
stream_id: BucketStreamIdTrait 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 PartialEq for StreamCommand
impl PartialEq for StreamCommand
Source§fn eq(&self, other: &StreamCommand) -> bool
fn eq(&self, other: &StreamCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StreamCommand
impl Serialize for StreamCommand
impl Eq 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