pub type DurableResult<T> = Result<T, DurableError>;Expand description
Result type for durable operations.
This is a type alias for Result<T, DurableError>, providing a more
semantic and concise way to express the return type of durable operations.
§Examples
use durable_execution_sdk::{DurableResult, DurableError};
fn process_data(data: &str) -> DurableResult<String> {
if data.is_empty() {
Err(DurableError::validation("Data cannot be empty"))
} else {
Ok(data.to_uppercase())
}
}§Expanded Form
ⓘ
type DurableResult<T> = Result<T, DurableError>;Aliased Type§
pub enum DurableResult<T> {
Ok(T),
Err(DurableError),
}