pub enum CheckpointActivity {
Idle,
Delayed {
delayed_since: DateTime<Utc>,
reasons: Vec<TemporarySuspendError>,
},
InProgress {
started_at: DateTime<Utc>,
},
}Expand description
Current checkpoint activity state.
JSON schema
{
"description": "Current checkpoint activity state.",
"oneOf": [
{
"type": "object",
"required": [
"status"
],
"properties": {
"status": {
"type": "string",
"enum": [
"idle"
]
}
}
},
{
"description": "A checkpoint has been requested but is delayed for temporary reasons\n(e.g. replaying, bootstrapping, transaction in progress, or input\nendpoint barriers that require the coordinator to run steps).",
"type": "object",
"required": [
"delayed_since",
"reasons",
"status"
],
"properties": {
"delayed_since": {
"description": "When the delay started (serialized as ISO 8601).",
"type": "string",
"format": "date-time"
},
"reasons": {
"description": "Why the checkpoint cannot proceed yet.",
"type": "array",
"items": {
"$ref": "#/components/schemas/TemporarySuspendError"
}
},
"status": {
"type": "string",
"enum": [
"delayed"
]
}
}
},
{
"description": "A checkpoint is currently being written to storage.",
"type": "object",
"required": [
"started_at",
"status"
],
"properties": {
"started_at": {
"description": "When the checkpoint write started (serialized as ISO 8601).",
"type": "string",
"format": "date-time"
},
"status": {
"type": "string",
"enum": [
"in_progress"
]
}
}
}
]
}Variants§
Idle
Delayed
A checkpoint has been requested but is delayed for temporary reasons (e.g. replaying, bootstrapping, transaction in progress, or input endpoint barriers that require the coordinator to run steps).
Fields
§
reasons: Vec<TemporarySuspendError>Why the checkpoint cannot proceed yet.
InProgress
A checkpoint is currently being written to storage.
Trait Implementations§
Source§impl Clone for CheckpointActivity
impl Clone for CheckpointActivity
Source§impl Debug for CheckpointActivity
impl Debug for CheckpointActivity
Source§impl<'de> Deserialize<'de> for CheckpointActivity
impl<'de> Deserialize<'de> for CheckpointActivity
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 From<&CheckpointActivity> for CheckpointActivity
impl From<&CheckpointActivity> for CheckpointActivity
Source§fn from(value: &CheckpointActivity) -> Self
fn from(value: &CheckpointActivity) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for CheckpointActivity
impl Freeze for CheckpointActivity
impl RefUnwindSafe for CheckpointActivity
impl Send for CheckpointActivity
impl Sync for CheckpointActivity
impl Unpin for CheckpointActivity
impl UnsafeUnpin for CheckpointActivity
impl UnwindSafe for CheckpointActivity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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