Skip to main content

EventDataSnapshot

Enum EventDataSnapshot 

Source
pub enum EventDataSnapshot {
Show 24 variants None, Task { task: IdSnapshot, region: IdSnapshot, }, Region { region: IdSnapshot, parent: Option<IdSnapshot>, }, Obligation { obligation: IdSnapshot, task: IdSnapshot, region: IdSnapshot, kind: ObligationKindSnapshot, state: ObligationStateSnapshot, duration_ns: Option<u64>, abort_reason: Option<ObligationAbortReasonSnapshot>, }, Cancel { task: IdSnapshot, region: IdSnapshot, reason: CancelReasonSnapshot, }, RegionCancel { region: IdSnapshot, reason: CancelReasonSnapshot, }, Time { old: u64, new: u64, }, Timer { timer_id: u64, deadline: Option<u64>, }, IoRequested { token: u64, interest: u8, }, IoReady { token: u64, readiness: u8, }, IoResult { token: u64, bytes: i64, }, IoError { token: u64, kind: u8, }, RngSeed { seed: u64, }, RngValue { value: u64, }, Checkpoint { sequence: u64, active_tasks: u32, active_regions: u32, }, Futurelock { task: IdSnapshot, region: IdSnapshot, idle_steps: u64, held: Vec<HeldObligationSnapshot>, }, Monitor { monitor_ref: u64, watcher: IdSnapshot, watcher_region: IdSnapshot, monitored: IdSnapshot, }, Down { monitor_ref: u64, watcher: IdSnapshot, monitored: IdSnapshot, completion_vt: u64, reason: DownReasonSnapshot, }, Link { link_ref: u64, task_a: IdSnapshot, region_a: IdSnapshot, task_b: IdSnapshot, region_b: IdSnapshot, }, Exit { link_ref: u64, from: IdSnapshot, to: IdSnapshot, failure_vt: u64, reason: DownReasonSnapshot, }, Message(String), Chaos { kind: String, task: Option<IdSnapshot>, detail: String, }, Worker { worker_id: String, job_id: u64, decision_seq: u64, replay_hash: u64, task: IdSnapshot, region: IdSnapshot, obligation: IdSnapshot, }, Budget { task: IdSnapshot, region: IdSnapshot, protocol: String, deadline_ns: Option<u64>, poll_quota: u64, cost_quota: Option<u64>, priority: u8, source: Option<String>, elapsed_ns: Option<u64>, outcome: Option<String>, },
}
Expand description

Serializable trace event payload.

Variants§

§

None

No additional data.

§

Task

Task-related event.

Fields

§task: IdSnapshot

Task identifier.

§region: IdSnapshot

Region identifier.

§

Region

Region-related event.

Fields

§region: IdSnapshot

Region identifier.

§parent: Option<IdSnapshot>

Parent region identifier.

§

Obligation

Obligation-related event.

Fields

§obligation: IdSnapshot

Obligation identifier.

§task: IdSnapshot

Task holding the obligation.

§region: IdSnapshot

Owning region.

§kind: ObligationKindSnapshot

Obligation kind.

§state: ObligationStateSnapshot

Obligation state.

§duration_ns: Option<u64>

Duration held in nanoseconds, if resolved.

§abort_reason: Option<ObligationAbortReasonSnapshot>

Abort reason, if applicable.

§

Cancel

Cancellation-related event.

Fields

§task: IdSnapshot

Task identifier.

§region: IdSnapshot

Region identifier.

§reason: CancelReasonSnapshot

Cancellation reason.

§

RegionCancel

Region cancellation event.

Fields

§region: IdSnapshot

Region identifier.

§reason: CancelReasonSnapshot

Cancellation reason.

§

Time

Time-related event.

Fields

§old: u64

Previous time in nanoseconds.

§new: u64

New time in nanoseconds.

§

Timer

Timer event.

Fields

§timer_id: u64

Timer identifier.

§deadline: Option<u64>

Deadline in nanoseconds, if applicable.

§

IoRequested

I/O request event.

Fields

§token: u64

I/O token.

§interest: u8

Interest bitflags.

§

IoReady

I/O ready event.

Fields

§token: u64

I/O token.

§readiness: u8

Readiness bitflags.

§

IoResult

I/O result event.

Fields

§token: u64

I/O token.

§bytes: i64

Bytes transferred.

§

IoError

I/O error event.

Fields

§token: u64

I/O token.

§kind: u8

Error kind.

§

RngSeed

RNG seed event.

Fields

§seed: u64

Seed value.

§

RngValue

RNG value event.

Fields

§value: u64

Generated value.

§

Checkpoint

Checkpoint event.

Fields

§sequence: u64

Monotonic sequence number.

§active_tasks: u32

Active task count.

§active_regions: u32

Active region count.

§

Futurelock

Futurelock event data.

Fields

§task: IdSnapshot

Task identifier.

§region: IdSnapshot

Region identifier.

§idle_steps: u64

Idle steps since last poll.

§held: Vec<HeldObligationSnapshot>

Obligations held at detection time.

§

Monitor

Monitor lifecycle event.

Fields

§monitor_ref: u64

Monitor reference id.

§watcher: IdSnapshot

Watcher task id.

§watcher_region: IdSnapshot

Watcher region id.

§monitored: IdSnapshot

Monitored task id.

§

Down

Down notification delivery.

Fields

§monitor_ref: u64

Monitor reference id.

§watcher: IdSnapshot

Watcher task id.

§monitored: IdSnapshot

Monitored task id.

§completion_vt: u64

Completion virtual time (nanoseconds).

§reason: DownReasonSnapshot

Reason for termination.

Link lifecycle event.

Fields

§link_ref: u64

Link reference id.

§task_a: IdSnapshot

One side task id.

§region_a: IdSnapshot

One side region id.

§task_b: IdSnapshot

Other side task id.

§region_b: IdSnapshot

Other side region id.

§

Exit

Exit signal delivery.

Fields

§link_ref: u64

Link reference id.

§from: IdSnapshot

Source task id.

§to: IdSnapshot

Target task id.

§failure_vt: u64

Failure virtual time (nanoseconds).

§reason: DownReasonSnapshot

Reason for termination.

§

Message(String)

User-defined message.

§

Chaos

Chaos injection details.

Fields

§kind: String

Chaos kind.

§task: Option<IdSnapshot>

Optional task identifier.

§detail: String

Additional detail.

§

Worker

Worker-offload lifecycle data.

Fields

§worker_id: String

Worker runtime instance identifier.

§job_id: u64

Offloaded job identifier.

§decision_seq: u64

Deterministic decision sequence carried by the worker envelope.

§replay_hash: u64

Stable replay digest carried by the worker envelope.

§task: IdSnapshot

Originating task identifier.

§region: IdSnapshot

Originating region identifier.

§obligation: IdSnapshot

Originating obligation identifier.

§

Budget

Server request-region budget data.

Fields

§task: IdSnapshot

Request task.

§region: IdSnapshot

Request region.

§protocol: String

Transport protocol token.

§deadline_ns: Option<u64>

Deadline in nanoseconds, if any.

§poll_quota: u64

Poll quota.

§cost_quota: Option<u64>

Cost quota, if any.

§priority: u8

Scheduling priority.

§source: Option<String>

Budget source token (install events).

§elapsed_ns: Option<u64>

Elapsed nanoseconds (consume events).

§outcome: Option<String>

Outcome token (consume events).

Trait Implementations§

Source§

impl Clone for EventDataSnapshot

Source§

fn clone(&self) -> EventDataSnapshot

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EventDataSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for EventDataSnapshot

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for EventDataSnapshot

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, _span: NoopSpan) -> Self

Instruments this future with a span (no-op when disabled).
Source§

fn in_current_span(self) -> Self

Instruments this future with the current span (no-op when disabled).
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V