Skip to main content

RuntimeStatus

Struct RuntimeStatus 

Source
pub struct RuntimeStatus {
    pub phase: OwnerPhase,
    pub supervisor_failed: bool,
    pub default_connection: Option<String>,
    pub connections: Vec<ConnectionStatus>,
    pub registrations: Vec<RegistrationStatus>,
    pub retained_instances: usize,
    pub snapshot_bytes: usize,
    pub transport_tasks: usize,
    pub shutdown_remaining_ms: Option<u64>,
}
Expand description

同一 owner 下的连接、注册、资源使用和关闭进度摘要。

Fields§

§phase: OwnerPhase

owner 当前生命周期阶段。

§supervisor_failed: bool

后台监督是否异常退出;异常时停止使用现有路由证据。

§default_connection: Option<String>

已解析的默认连接 qualifier;未配置 primary 且无显式覆盖时为空。

§connections: Vec<ConnectionStatus>

以 qualifier 为键的连接目录,不按顺序推断默认连接。

§registrations: Vec<RegistrationStatus>

注册目标集合,包含各目标独立的状态或发布策略。

§retained_instances: usize

所有保留快照累计占用的实例数量。

§snapshot_bytes: usize

所有保留快照占用的估算字节数。

§transport_tasks: usize

当前占用容量许可的传输任务数量。

§shutdown_remaining_ms: Option<u64>

冻结的关闭总期限剩余毫秒数;尚未关闭时为空。

Trait Implementations§

Source§

impl Clone for RuntimeStatus

Source§

fn clone(&self) -> Self

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 RuntimeStatus

Source§

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

Formats the value using the given formatter. 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<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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.