pub struct Budget {
pub slice: String,
pub memory_max: Option<u64>,
pub memory_in_use: u64,
pub mirror_memory: u64,
pub seed_memory: Vec<SeedMemory>,
}Expand description
The memory budget runners and the mirror share, in bytes.
Fields§
§slice: StringThe systemd slice runner containers run in.
memory_max: Option<u64>The slice’s MemoryMax; None when it is unlimited.
memory_in_use: u64Memory caps of the running containers: runners, seed containers and the mirror.
mirror_memory: u64The mirror’s part of memory_in_use: its cap while it is enabled or still running, else 0.
seed_memory: Vec<SeedMemory>The seed containers’ part of memory_in_use, one per profile that reseeds, by profile name.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Budget
impl<'de> Deserialize<'de> for Budget
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 Budget
impl StructuralPartialEq for Budget
Auto Trait Implementations§
impl Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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