#[repr(i32)]pub enum FragmentTypeFlag {
Show 13 variants
FragmentUnspecified = 0,
Source = 1,
Mview = 2,
Sink = 4,
Now = 8,
StreamScan = 16,
BarrierRecv = 32,
Values = 64,
Dml = 128,
CdcFilter = 256,
SourceScan = 1_024,
SnapshotBackfillStreamScan = 2_048,
FsFetch = 4_096,
}
Expand description
Indicates whether the fragment contains some special kind of nodes.
Variants§
FragmentUnspecified = 0
Source = 1
Mview = 2
Sink = 4
Now = 8
TODO: Remove this and insert a BarrierRecv
instead.
StreamScan = 16
Include StreamScan and StreamCdcScan
BarrierRecv = 32
Values = 64
Dml = 128
CdcFilter = 256
SourceScan = 1_024
SnapshotBackfillStreamScan = 2_048
FsFetch = 4_096
Note: this flag is not available in old fragments, so only suitable for debugging purpose.
Implementations§
source§impl FragmentTypeFlag
impl FragmentTypeFlag
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
source§impl FragmentTypeFlag
impl FragmentTypeFlag
sourcepub fn backfill_rate_limit_fragments() -> i32
pub fn backfill_rate_limit_fragments() -> i32
Fragments that may be affected by BACKFILL_RATE_LIMIT
.
sourcepub fn source_rate_limit_fragments() -> i32
pub fn source_rate_limit_fragments() -> i32
Fragments that may be affected by SOURCE_RATE_LIMIT
.
Note: for FsFetch
, old fragments don’t have this flag set, so don’t use this to check.
sourcepub fn rate_limit_fragments() -> i32
pub fn rate_limit_fragments() -> i32
Note: this doesn’t include FsFetch
created in old versions.
Trait Implementations§
source§impl Clone for FragmentTypeFlag
impl Clone for FragmentTypeFlag
source§fn clone(&self) -> FragmentTypeFlag
fn clone(&self) -> FragmentTypeFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FragmentTypeFlag
impl Debug for FragmentTypeFlag
source§impl Default for FragmentTypeFlag
impl Default for FragmentTypeFlag
source§fn default() -> FragmentTypeFlag
fn default() -> FragmentTypeFlag
source§impl<'de> Deserialize<'de> for FragmentTypeFlag
impl<'de> Deserialize<'de> for FragmentTypeFlag
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>,
source§impl From<FragmentTypeFlag> for i32
impl From<FragmentTypeFlag> for i32
source§fn from(value: FragmentTypeFlag) -> i32
fn from(value: FragmentTypeFlag) -> i32
source§impl Hash for FragmentTypeFlag
impl Hash for FragmentTypeFlag
source§impl Ord for FragmentTypeFlag
impl Ord for FragmentTypeFlag
source§fn cmp(&self, other: &FragmentTypeFlag) -> Ordering
fn cmp(&self, other: &FragmentTypeFlag) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for FragmentTypeFlag
impl PartialEq for FragmentTypeFlag
source§impl PartialOrd for FragmentTypeFlag
impl PartialOrd for FragmentTypeFlag
source§impl Serialize for FragmentTypeFlag
impl Serialize for FragmentTypeFlag
source§impl TryFrom<i32> for FragmentTypeFlag
impl TryFrom<i32> for FragmentTypeFlag
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<FragmentTypeFlag, UnknownEnumValue>
fn try_from(value: i32) -> Result<FragmentTypeFlag, UnknownEnumValue>
impl Copy for FragmentTypeFlag
impl Eq for FragmentTypeFlag
impl StructuralPartialEq for FragmentTypeFlag
Auto Trait Implementations§
impl Freeze for FragmentTypeFlag
impl RefUnwindSafe for FragmentTypeFlag
impl Send for FragmentTypeFlag
impl Sync for FragmentTypeFlag
impl Unpin for FragmentTypeFlag
impl UnwindSafe for FragmentTypeFlag
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.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
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request