pub struct ResourceStatus {
pub kind: ResourceKind,
pub key: String,
pub spec: String,
pub state: &'static str,
pub owner: Option<String>,
pub acquisition_process_id: Option<usize>,
pub acquisitions: u64,
pub outstanding_subleases: usize,
}Expand description
Reported state of a single resource.
Fields§
§kind: ResourceKindKind of the resource.
key: StringKey the resource is registered under, unique within its kind.
spec: StringRendered specification the resource was created from.
state: &'static strLifecycle state of the resource: creating, leased, idle, subleased, or discarded.
subleased is idle-but-unavailable: the head lease is back, but something the holder lent out is still in
use. discarded means the resource is gone and only its key is still reserved, for the same reason.
owner: Option<String>Subsystem holding the resource, if any.
This is the authoritative answer to who holds the resource.
acquisition_process_id: Option<usize>Process that acquired the resource, if any.
This is the process that ran the acquisition, which is not necessarily the one using the resource now: a component acquires while it is being built, and only afterwards does it get a process of its own.
Use owner to identify the holder.
acquisitions: u64Number of times the resource has been acquired.
outstanding_subleases: usizeNumber of subleases currently outstanding on the resource.
Non-zero once a holder has released the resource while something it lent out is still in use. The resource isn’t handed to its next acquirer until this reaches zero.
Trait Implementations§
Source§impl Clone for ResourceStatus
impl Clone for ResourceStatus
Source§fn clone(&self) -> ResourceStatus
fn clone(&self) -> ResourceStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceStatus
impl Debug for ResourceStatus
Auto Trait Implementations§
impl Freeze for ResourceStatus
impl RefUnwindSafe for ResourceStatus
impl Send for ResourceStatus
impl Sync for ResourceStatus
impl Unpin for ResourceStatus
impl UnwindSafe for ResourceStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Track for T
impl<T> Track for T
§fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
fn track_resources(self, token: ResourceGroupToken) -> Tracked<Self>
Tracked wrapper. Read more§fn in_current_resource_group(self) -> Tracked<Self>
fn in_current_resource_group(self) -> Tracked<Self>
Tracked wrapper. Read more