pub struct WorkspaceStats {
pub retained_bytes: usize,
pub leased_bytes: usize,
}Expand description
What an owner currently holds and currently lends out.
Exactness: both values are settled at every checkout, return, team take,
lease drop and trim, so ArenaProvider::stats is exact whenever no
execution is in flight. While one is, a checked-out slot is counted at the
capacity it had when it was checked out, so retained_bytes is an unsettled
estimate that can lag growth or shrinkage until the call returns.
Fields§
§retained_bytes: usizeCapacity the owner holds: worker A/tile/scatter and team panel/scatter/barriers, idle or in use.
leased_bytes: usizeThe part of retained_bytes lent to a call right now.
Trait Implementations§
Source§impl Clone for WorkspaceStats
impl Clone for WorkspaceStats
impl Copy for WorkspaceStats
Source§impl Debug for WorkspaceStats
impl Debug for WorkspaceStats
Source§impl Default for WorkspaceStats
impl Default for WorkspaceStats
impl Eq for WorkspaceStats
Source§impl PartialEq for WorkspaceStats
impl PartialEq for WorkspaceStats
impl StructuralPartialEq for WorkspaceStats
Auto Trait Implementations§
impl Freeze for WorkspaceStats
impl RefUnwindSafe for WorkspaceStats
impl Send for WorkspaceStats
impl Sync for WorkspaceStats
impl Unpin for WorkspaceStats
impl UnsafeUnpin for WorkspaceStats
impl UnwindSafe for WorkspaceStats
Blanket Implementations§
impl<T> Boilerplate for T
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,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more