pub struct RegionSnapshot {
pub id: IdSnapshot,
pub parent_id: Option<IdSnapshot>,
pub state: RegionStateSnapshot,
pub budget: BudgetSnapshot,
pub child_count: usize,
pub task_count: usize,
pub name: Option<String>,
}Expand description
Serializable region snapshot.
Fields§
§id: IdSnapshotRegion identifier.
parent_id: Option<IdSnapshot>Parent region identifier, if any.
state: RegionStateSnapshotCurrent region state.
budget: BudgetSnapshotEffective budget for the region.
child_count: usizeNumber of child regions.
task_count: usizeNumber of tasks owned by the region.
name: Option<String>Optional human-friendly name.
Trait Implementations§
Source§impl Clone for RegionSnapshot
impl Clone for RegionSnapshot
Source§fn clone(&self) -> RegionSnapshot
fn clone(&self) -> RegionSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegionSnapshot
impl Debug for RegionSnapshot
Source§impl<'de> Deserialize<'de> for RegionSnapshot
impl<'de> Deserialize<'de> for RegionSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RegionSnapshot
impl RefUnwindSafe for RegionSnapshot
impl Send for RegionSnapshot
impl Sync for RegionSnapshot
impl Unpin for RegionSnapshot
impl UnsafeUnpin for RegionSnapshot
impl UnwindSafe for RegionSnapshot
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
Mutably borrows from an owned value. Read more
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).