pub enum StreamSelector {
All,
Streams(Vec<StreamId>),
PartitionClass {
count: u32,
index: u32,
},
}Expand description
Which streams a plan selects. Evaluated per record from the envelope’s
StreamId — never from the stream catalog — so streams created after
any derived state was built still route correctly.
Variants§
All
Every stream.
Streams(Vec<StreamId>)
An explicit set of stream IDs (deduplicated and sorted internally).
PartitionClass
Every stream whose ID hashes into partition index of count
equal hash classes — the healing unit. The hash is the first eight
little-endian bytes of the StreamId modulo count, which is
uniform because stream IDs are themselves hash-derived.
Trait Implementations§
Source§impl Clone for StreamSelector
impl Clone for StreamSelector
Source§fn clone(&self) -> StreamSelector
fn clone(&self) -> StreamSelector
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 StreamSelector
impl Debug for StreamSelector
Source§impl Default for StreamSelector
impl Default for StreamSelector
Source§fn default() -> StreamSelector
fn default() -> StreamSelector
Returns the “default value” for a type. Read more
impl Eq for StreamSelector
Source§impl PartialEq for StreamSelector
impl PartialEq for StreamSelector
impl StructuralPartialEq for StreamSelector
Auto Trait Implementations§
impl Freeze for StreamSelector
impl RefUnwindSafe for StreamSelector
impl Send for StreamSelector
impl Sync for StreamSelector
impl Unpin for StreamSelector
impl UnsafeUnpin for StreamSelector
impl UnwindSafe for StreamSelector
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