pub struct InvocationState {
pub invocation: Invocation,
pub status: InvocationStatus,
pub started_at: Option<DateTime<Utc>>,
pub response: Option<InvocationResponse>,
pub error: Option<InvocationError>,
}Expand description
Tracks the state of a single invocation throughout its lifecycle.
Fields§
§invocation: InvocationThe original invocation request data (payload, request ID, deadline, etc.).
status: InvocationStatusCurrent lifecycle status (Pending, InProgress, Success, or Error).
started_at: Option<DateTime<Utc>>Timestamp when the runtime received this invocation via /next.
None if still pending in the queue.
response: Option<InvocationResponse>The response payload if the invocation completed successfully.
error: Option<InvocationError>Error details if the invocation failed.
Trait Implementations§
Source§impl Clone for InvocationState
impl Clone for InvocationState
Source§fn clone(&self) -> InvocationState
fn clone(&self) -> InvocationState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InvocationState
impl RefUnwindSafe for InvocationState
impl Send for InvocationState
impl Sync for InvocationState
impl Unpin for InvocationState
impl UnwindSafe for InvocationState
Blanket Implementations§
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