pub type CheckpointResult<T> = Result<T, DurableError>;Expand description
Result type for checkpoint operations.
This is a type alias for Result<T, DurableError>, specifically intended
for checkpoint-related operations. Using this alias makes it clear that a
function performs checkpointing within a durable execution.
§Examples
use durable_execution_sdk::{CheckpointResult, DurableError};
fn save_checkpoint(data: &[u8]) -> CheckpointResult<()> {
if data.len() > 1_000_000 {
Err(DurableError::size_limit("Checkpoint data too large"))
} else {
Ok(())
}
}§Expanded Form
ⓘ
type CheckpointResult<T> = Result<T, DurableError>;Aliased Type§
pub enum CheckpointResult<T> {
Ok(T),
Err(DurableError),
}