Trait RunFuture

Source
pub trait RunFuture<O>: Future<Output = O> {
    // Required methods
    fn retry_policy(self, retry_policy: RunRetryPolicy) -> Self;
    fn name(self, name: impl Into<String>) -> Self;
}
Expand description

Future created using ContextSideEffects::run.

Required Methods§

Source

fn retry_policy(self, retry_policy: RunRetryPolicy) -> Self

Provide a custom retry policy for this run operation.

If unspecified, the run will be retried using the Restate invoker retry policy, which by default retries indefinitely.

Source

fn name(self, name: impl Into<String>) -> Self

Define a name for this run operation.

This is used mainly for observability.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§