#[repr(i32)]pub enum BarrierKind {
Unspecified = 0,
Initial = 1,
Barrier = 2,
Checkpoint = 3,
}
Variants§
Unspecified = 0
Initial = 1
The first barrier after a fresh start or recovery. There will be no data associated with the previous epoch of the barrier.
Barrier = 2
A normal barrier. Data should be flushed locally.
Checkpoint = 3
A checkpoint barrier. Data should be synchorized to the shared storage.
Implementations§
source§impl BarrierKind
impl BarrierKind
source§impl BarrierKind
impl BarrierKind
sourcepub fn is_unspecified(&self) -> bool
pub fn is_unspecified(&self) -> bool
Returns true if this is a BarrierKind::Unspecified
, otherwise false
sourcepub fn is_initial(&self) -> bool
pub fn is_initial(&self) -> bool
Returns true if this is a BarrierKind::Initial
, otherwise false
sourcepub fn is_barrier(&self) -> bool
pub fn is_barrier(&self) -> bool
Returns true if this is a BarrierKind::Barrier
, otherwise false
sourcepub fn is_checkpoint(&self) -> bool
pub fn is_checkpoint(&self) -> bool
Returns true if this is a BarrierKind::Checkpoint
, otherwise false
source§impl BarrierKind
impl BarrierKind
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.
Trait Implementations§
source§impl Clone for BarrierKind
impl Clone for BarrierKind
source§fn clone(&self) -> BarrierKind
fn clone(&self) -> BarrierKind
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BarrierKind
impl Debug for BarrierKind
source§impl Default for BarrierKind
impl Default for BarrierKind
source§fn default() -> BarrierKind
fn default() -> BarrierKind
source§impl<'de> Deserialize<'de> for BarrierKind
impl<'de> Deserialize<'de> for BarrierKind
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<BarrierKind> for i32
impl From<BarrierKind> for i32
source§fn from(value: BarrierKind) -> i32
fn from(value: BarrierKind) -> i32
source§impl Hash for BarrierKind
impl Hash for BarrierKind
source§impl Ord for BarrierKind
impl Ord for BarrierKind
source§fn cmp(&self, other: &BarrierKind) -> Ordering
fn cmp(&self, other: &BarrierKind) -> 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 BarrierKind
impl PartialEq for BarrierKind
source§impl PartialOrd for BarrierKind
impl PartialOrd for BarrierKind
source§impl Serialize for BarrierKind
impl Serialize for BarrierKind
source§impl TryFrom<i32> for BarrierKind
impl TryFrom<i32> for BarrierKind
source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<BarrierKind, UnknownEnumValue>
fn try_from(value: i32) -> Result<BarrierKind, UnknownEnumValue>
impl Copy for BarrierKind
impl Eq for BarrierKind
impl StructuralPartialEq for BarrierKind
Auto Trait Implementations§
impl Freeze for BarrierKind
impl RefUnwindSafe for BarrierKind
impl Send for BarrierKind
impl Sync for BarrierKind
impl Unpin for BarrierKind
impl UnwindSafe for BarrierKind
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