pub struct MemoryHold {
pub need: u64,
pub bound: u64,
pub by: MemoryBound,
}Expand description
A bound of the config holding a profile’s memory away from what its jobs need: the config check refuses a
profile past it, so the advice goes no further than bound, and auto sizing writes it as is (ADR 0086, 0088). Under
a raise it says only that no raise past bound is possible, not that the jobs fit.
Fields§
§need: u64What the jobs need, in bytes: the raise they ask for, the memory a revert goes back to, or the lowering’s
floor.
bound: u64The memory the advice goes to at most, or for a lowering at least.
by: MemoryBoundWhich bound it is.
Implementations§
Source§impl MemoryHold
impl MemoryHold
Sourcepub fn bound_line(&self) -> String
pub fn bound_line(&self) -> String
What holds the memory, as the advice line says it after the memory it goes to: the most the host's 24G memory_ceiling leaves one runner beside the mirror's 1G, its max_memory or its min_memory.
Trait Implementations§
Source§impl Clone for MemoryHold
impl Clone for MemoryHold
impl Copy for MemoryHold
Source§impl Debug for MemoryHold
impl Debug for MemoryHold
Source§impl<'de> Deserialize<'de> for MemoryHold
impl<'de> Deserialize<'de> for MemoryHold
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 MemoryHold
Source§impl PartialEq for MemoryHold
impl PartialEq for MemoryHold
Source§impl Serialize for MemoryHold
impl Serialize for MemoryHold
impl StructuralPartialEq for MemoryHold
Auto Trait Implementations§
impl Forget for MemoryHold
impl Freeze for MemoryHold
impl Move for MemoryHold
impl RefUnwindSafe for MemoryHold
impl Send for MemoryHold
impl Sync for MemoryHold
impl Unpin for MemoryHold
impl UnsafeUnpin for MemoryHold
impl UnwindSafe for MemoryHold
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.