Skip to main content

RuntimeKernelSnapshot

Struct RuntimeKernelSnapshot 

Source
pub struct RuntimeKernelSnapshot {
Show 22 fields pub id: SnapshotId, pub version: SnapshotVersion, pub timestamp: Time, pub ready_queue_len: usize, pub cancel_lane_len: usize, pub finalize_lane_len: usize, pub total_tasks: usize, pub active_regions: usize, pub cancel_streak_current: usize, pub cancel_streak_limit: usize, pub outstanding_obligations: usize, pub obligation_leak_count: u64, pub pending_io_registrations: usize, pub active_timers: usize, pub worker_count: usize, pub workers_parked: usize, pub blocking_threads_active: usize, pub governor_enabled: bool, pub adaptive_cancel_enabled: bool, pub adaptive_epoch: u64, pub registered_controllers: usize, pub shadow_controllers: usize,
}
Expand description

A point-in-time snapshot of observable runtime state for controllers.

Controllers receive this snapshot via their observe callback. They must not cache snapshots across decision boundaries — each decision must use the snapshot provided for that epoch.

Fields§

§id: SnapshotId

Unique identifier for this snapshot.

§version: SnapshotVersion

Schema version of this snapshot.

§timestamp: Time

Logical time at which this snapshot was taken.

§ready_queue_len: usize

Number of tasks currently in the ready queue.

§cancel_lane_len: usize

Number of tasks in the cancel lane.

§finalize_lane_len: usize

Number of tasks in the finalize lane.

§total_tasks: usize

Total tasks currently tracked by the runtime.

§active_regions: usize

Number of active (non-closed) regions.

§cancel_streak_current: usize

Current cancel-lane streak count within the active epoch.

§cancel_streak_limit: usize

Configured cancel-lane max streak.

§outstanding_obligations: usize

Number of outstanding (uncommitted) obligations.

§obligation_leak_count: u64

Cumulative obligation leak count since runtime start.

§pending_io_registrations: usize

Number of pending I/O registrations in the reactor.

§active_timers: usize

Number of active timers in the timer wheel.

§worker_count: usize

Number of worker threads configured.

§workers_parked: usize

Number of workers currently parked (idle).

§blocking_threads_active: usize

Number of active blocking pool threads.

§governor_enabled: bool

Whether the Lyapunov governor is enabled.

§adaptive_cancel_enabled: bool

Whether adaptive cancel-streak is enabled.

§adaptive_epoch: u64

Current adaptive cancel-streak epoch number (if adaptive enabled).

§registered_controllers: usize

Number of registered controllers.

§shadow_controllers: usize

Number of controllers in shadow mode.

Trait Implementations§

Source§

impl Clone for RuntimeKernelSnapshot

Source§

fn clone(&self) -> RuntimeKernelSnapshot

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 RuntimeKernelSnapshot

Source§

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

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

impl<'de> Deserialize<'de> for RuntimeKernelSnapshot

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 RuntimeKernelSnapshot

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