pub struct Pooled {
pub credit: u64,
pub counted: u64,
pub runners: u64,
}Expand description
The count the budgets go by while pooling takes something off Budget::memory_in_use (ADR 0099).
Fields§
§credit: u64What it takes off, in bytes.
counted: u64Budget::memory_in_use less credit: what new runners fit beside under MemoryMax. The host’s limit reads
memory_in_use.
runners: u64How many runners the credit counts on.
Trait Implementations§
impl Copy for Pooled
Source§impl<'de> Deserialize<'de> for Pooled
impl<'de> Deserialize<'de> for Pooled
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
impl Eq for Pooled
impl StructuralPartialEq for Pooled
Auto Trait Implementations§
impl Forget for Pooled
impl Freeze for Pooled
impl RefUnwindSafe for Pooled
impl Send for Pooled
impl Sync for Pooled
impl Unpin for Pooled
impl UnsafeUnpin for Pooled
impl UnwindSafe for Pooled
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.