pub struct UnitState {Show 19 fields
pub status: Option<UnitStatus>,
pub attempt: u32,
pub input: Option<Value>,
pub idempotency_key: Option<String>,
pub output: Option<Value>,
pub error: Option<TaskError>,
pub last_error: Option<TaskError>,
pub redelivery: bool,
pub scheduled_at_ms: Option<u64>,
pub dispatched_at_ms: Option<u64>,
pub deadline_ms: Option<u64>,
pub wake_at_ms: Option<u64>,
pub finished_at_ms: Option<u64>,
pub worker_id: Option<String>,
pub worker_session: Option<String>,
pub token: Option<String>,
pub tokens: Vec<(String, u32)>,
pub succeeded_seq: Option<u64>,
pub dispatch_count: u32,
}Expand description
One schedulable unit: a workflow step, or the compensation of a step
(key compensate:<step>).
Fields§
§status: Option<UnitStatus>§attempt: u32§input: Option<Value>§idempotency_key: Option<String>§output: Option<Value>§error: Option<TaskError>§last_error: Option<TaskError>§redelivery: bool§scheduled_at_ms: Option<u64>§dispatched_at_ms: Option<u64>§deadline_ms: Option<u64>§wake_at_ms: Option<u64>§finished_at_ms: Option<u64>§worker_id: Option<String>§worker_session: Option<String>§token: Option<String>Token of the in-flight dispatch.
tokens: Vec<(String, u32)>Every token issued for this unit, with its attempt number. Results for any of them are accepted while the unit is unresolved (reconciliation).
succeeded_seq: Option<u64>Commit order of success, used to compensate in reverse.
dispatch_count: u32Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitState
impl<'de> Deserialize<'de> for UnitState
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
Auto Trait Implementations§
impl Forget for UnitState
impl Freeze for UnitState
impl Move for UnitState
impl RefUnwindSafe for UnitState
impl Send for UnitState
impl Sync for UnitState
impl Unpin for UnitState
impl UnsafeUnpin for UnitState
impl UnwindSafe for UnitState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request