pub enum TimerCancelCause {
WorkflowIntent,
CancelTeardown,
}Expand description
Who retired a durable timer, recorded on Event::TimerCancelled.
The distinction decides reopen semantics. A timer the WORKFLOW retired —
an SDK cancel_timer call or a with_timeout scope settling because the
racing operation won — is a business fact: reopen must never resurrect it.
A timer the ENGINE retired while tearing down a cancelled run
(Engine::cancel’s in-flight timer cleanup) is bookkeeping: the deadline
itself was never reached or waived, so reopening the run re-arms it at its
original fire_at.
Variants§
WorkflowIntent
Workflow code retired the timer (SDK cancel or a settled timeout scope).
The serde default: histories recorded before this field existed decode as workflow intent, preserving their pre-field never-resurrected behavior.
CancelTeardown
The engine retired the timer while cancelling its workflow run.
Trait Implementations§
Source§impl Clone for TimerCancelCause
impl Clone for TimerCancelCause
Source§fn clone(&self) -> TimerCancelCause
fn clone(&self) -> TimerCancelCause
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TimerCancelCause
Source§impl Debug for TimerCancelCause
impl Debug for TimerCancelCause
Source§impl Default for TimerCancelCause
impl Default for TimerCancelCause
Source§fn default() -> TimerCancelCause
fn default() -> TimerCancelCause
Source§impl<'de> Deserialize<'de> for TimerCancelCause
impl<'de> Deserialize<'de> for TimerCancelCause
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>,
impl Eq for TimerCancelCause
Source§impl PartialEq for TimerCancelCause
impl PartialEq for TimerCancelCause
Source§impl Serialize for TimerCancelCause
impl Serialize for TimerCancelCause
impl StructuralPartialEq for TimerCancelCause
Source§impl TS for TimerCancelCause
impl TS for TimerCancelCause
Source§type WithoutGenerics = TimerCancelCause
type WithoutGenerics = TimerCancelCause
WithoutGenerics should just be Self.
If the type does have generic parameters, then all generic parameters must be replaced with
a dummy type, e.g ts_rs::Dummy or (). The only requirement for these dummy types is that
EXPORT_TO must be None. Read moreSource§type OptionInnerType = TimerCancelCause
type OptionInnerType = TimerCancelCause
std::option::Option<T>, then this associated type is set to T.
All other implementations of TS should set this type to Self instead.Source§fn docs() -> Option<String>
fn docs() -> Option<String>
TS is derived, docs are
automatically read from your doc comments or #[doc = ".."] attributesSource§fn decl_concrete(cfg: &Config) -> String
fn decl_concrete(cfg: &Config) -> String
TS::decl().
If this type is not generic, then this function is equivalent to TS::decl().Source§fn decl(cfg: &Config) -> String
fn decl(cfg: &Config) -> String
type User = { user_id: number, ... }.
This function will panic if the type has no declaration. Read moreSource§fn inline(cfg: &Config) -> String
fn inline(cfg: &Config) -> String
{ user_id: number }.
This function will panic if the type cannot be inlined.Source§fn inline_flattened(cfg: &Config) -> String
fn inline_flattened(cfg: &Config) -> String
Source§fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_generics(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn output_path() -> Option<PathBuf>
fn output_path() -> Option<PathBuf>
T should be exported, relative to the output directory.
The returned path does not include any base directory. Read moreSource§fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
fn visit_dependencies(v: &mut impl TypeVisitor)where
Self: 'static,
Source§fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
fn dependencies(cfg: &Config) -> Vec<Dependency>where
Self: 'static,
Source§fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export_all. Read moreSource§fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
fn export_all(cfg: &Config) -> Result<(), ExportError>where
Self: 'static,
TS::export. Read more