#[repr(C)]pub struct CheckpointBarrier {
pub checkpoint_id: u64,
pub epoch: u64,
pub flags: u64,
}Expand description
A checkpoint barrier that flows through the dataflow graph.
This is a 24-byte #[repr(C)] value type that can be cheaply copied
and embedded in channel messages. It carries the checkpoint identity
and behavior flags.
§Layout (24 bytes)
| Field | Offset | Size | Description |
|---|---|---|---|
| checkpoint_id | 0 | 8 | Unique checkpoint ID |
| epoch | 8 | 8 | Monotonic epoch number |
| flags | 16 | 8 | Behavior flags (see flags) |
Fields§
§checkpoint_id: u64Unique identifier for this checkpoint.
epoch: u64Monotonically increasing epoch number.
flags: u64Behavior flags (see flags module constants).
Implementations§
Source§impl CheckpointBarrier
impl CheckpointBarrier
Sourcepub const fn new(checkpoint_id: u64, epoch: u64) -> Self
pub const fn new(checkpoint_id: u64, epoch: u64) -> Self
Create a new barrier with the given checkpoint ID and epoch.
Sourcepub const fn full_snapshot(checkpoint_id: u64, epoch: u64) -> Self
pub const fn full_snapshot(checkpoint_id: u64, epoch: u64) -> Self
Create a barrier that requests a full snapshot.
Sourcepub const fn is_full_snapshot(&self) -> bool
pub const fn is_full_snapshot(&self) -> bool
Check whether this barrier requests a full (non-incremental) snapshot.
Sourcepub const fn is_cancel(&self) -> bool
pub const fn is_cancel(&self) -> bool
Check whether this barrier cancels an in-progress checkpoint.
Sourcepub const fn is_unaligned(&self) -> bool
pub const fn is_unaligned(&self) -> bool
Check whether this barrier is from an unaligned checkpoint.
Trait Implementations§
Source§impl Clone for CheckpointBarrier
impl Clone for CheckpointBarrier
Source§fn clone(&self) -> CheckpointBarrier
fn clone(&self) -> CheckpointBarrier
Returns a duplicate of the value. Read more
1.0.0 · 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 CheckpointBarrier
impl Debug for CheckpointBarrier
Source§impl Hash for CheckpointBarrier
impl Hash for CheckpointBarrier
Source§impl PartialEq for CheckpointBarrier
impl PartialEq for CheckpointBarrier
impl Copy for CheckpointBarrier
impl Eq for CheckpointBarrier
impl StructuralPartialEq for CheckpointBarrier
Auto Trait Implementations§
impl Freeze for CheckpointBarrier
impl RefUnwindSafe for CheckpointBarrier
impl Send for CheckpointBarrier
impl Sync for CheckpointBarrier
impl Unpin for CheckpointBarrier
impl UnsafeUnpin for CheckpointBarrier
impl UnwindSafe for CheckpointBarrier
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
Compare self to
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.