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§fn clone(&self) -> CheckpointActivity
fn clone(&self) -> CheckpointActivity
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 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 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