pub enum MemoryBound {
Ceiling {
ceiling: u64,
mirror: u64,
},
MaxMemory,
MinMemory,
}Expand description
Which bound of the config holds a profile’s memory.
Variants§
Ceiling
[host] memory_ceiling less the mirror, down to a multiple of 256M so that the config file says it exactly:
the most one runner may have (ADR 0086).
Fields
MaxMemory
The profile’s max_memory.
MinMemory
The profile’s min_memory.
Implementations§
Trait Implementations§
Source§impl Clone for MemoryBound
impl Clone for MemoryBound
impl Copy for MemoryBound
Source§impl Debug for MemoryBound
impl Debug for MemoryBound
Source§impl<'de> Deserialize<'de> for MemoryBound
impl<'de> Deserialize<'de> for MemoryBound
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 MemoryBound
Source§impl PartialEq for MemoryBound
impl PartialEq for MemoryBound
Source§impl Serialize for MemoryBound
impl Serialize for MemoryBound
impl StructuralPartialEq for MemoryBound
Auto Trait Implementations§
impl Forget for MemoryBound
impl Freeze for MemoryBound
impl RefUnwindSafe for MemoryBound
impl Send for MemoryBound
impl Sync for MemoryBound
impl Unpin for MemoryBound
impl UnsafeUnpin for MemoryBound
impl UnwindSafe for MemoryBound
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.