pub struct HostCredit {
pub bytes: u64,
pub used: u64,
}Expand description
What the host’s limit takes off the plain count (ADR 0108): Budget::memory_in_use less bytes is what it counts,
used of that is what the runners use, and the rest is room kept for what runs to grow into.
Fields§
§bytes: u64What it takes off, in bytes.
used: u64What the runners use, by their recent samples, in bytes.
Trait Implementations§
Source§impl Clone for HostCredit
impl Clone for HostCredit
impl Copy for HostCredit
Source§impl Debug for HostCredit
impl Debug for HostCredit
Source§impl<'de> Deserialize<'de> for HostCredit
impl<'de> Deserialize<'de> for HostCredit
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 HostCredit
Source§impl PartialEq for HostCredit
impl PartialEq for HostCredit
Source§impl Serialize for HostCredit
impl Serialize for HostCredit
impl StructuralPartialEq for HostCredit
Auto Trait Implementations§
impl Forget for HostCredit
impl Freeze for HostCredit
impl Move for HostCredit
impl RefUnwindSafe for HostCredit
impl Send for HostCredit
impl Sync for HostCredit
impl Unpin for HostCredit
impl UnsafeUnpin for HostCredit
impl UnwindSafe for HostCredit
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.