Skip to main content

ManagedStatus

Struct ManagedStatus 

Source
pub struct ManagedStatus {
Show 18 fields pub lifecycle: ManagedLifecycle, pub stop_requested: bool, pub applied_command_sequence: u64, pub desired_target_count: usize, pub connecting_target_count: usize, pub opening_target_count: usize, pub active_target_count: usize, pub draining_target_count: usize, pub closing_target_count: usize, pub terminal_target_count: usize, pub total_target_outcomes: u64, pub successful_target_outcomes: u64, pub failed_target_outcomes: u64, pub peer_closed_target_outcomes: u64, pub discarded_target_outcomes: u64, pub targets: Arc<[ManagedTargetStatus]>, pub recent_target_outcomes: Arc<[ManagedTargetOutcome]>, pub final_outcome: Option<Arc<ManagedOutcome>>,
}
Expand description

Authoritative immutable managed status snapshot.

Fields§

§lifecycle: ManagedLifecycle§stop_requested: bool

Whether the task durably observed an explicit stop request.

This remains false until the task observes the request latch. Natural stopping and terminality alone do not imply a stop request was observed.

§applied_command_sequence: u64§desired_target_count: usize§connecting_target_count: usize§opening_target_count: usize§active_target_count: usize§draining_target_count: usize§closing_target_count: usize§terminal_target_count: usize§total_target_outcomes: u64§successful_target_outcomes: u64§failed_target_outcomes: u64§peer_closed_target_outcomes: u64§discarded_target_outcomes: u64§targets: Arc<[ManagedTargetStatus]>§recent_target_outcomes: Arc<[ManagedTargetOutcome]>§final_outcome: Option<Arc<ManagedOutcome>>

Authoritative final accounting, present if and only if lifecycle is ManagedLifecycle::Completed or ManagedLifecycle::Failed.

Shares the terminal task phase’s outcome with ManagedEvent::Completed or ManagedEvent::Failed. Abandoned deliberately has no outcome.

Trait Implementations§

Source§

impl Clone for ManagedStatus

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 ManagedStatus

Source§

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

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

impl Eq for ManagedStatus

Source§

impl PartialEq for ManagedStatus

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ManagedStatus

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

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.