pub struct FileConfig {Show 23 fields
pub owner: PathBuf,
pub flake_attr: String,
pub state_dir: PathBuf,
pub max_tier: Tier,
pub user_controllable_units: BTreeSet<String>,
pub user_controllable_changes: BTreeSet<String>,
pub user_controllable_options: BTreeSet<String>,
pub runtime_allowlist: BTreeSet<String>,
pub option_sensitivity: BTreeMap<String, Sensitivities>,
pub catalog: CatalogConfig,
pub runtime_options: Vec<RuntimeOptionConfig>,
pub devices: BTreeMap<String, PathBuf>,
pub admin_group: String,
pub gc: GcBudget,
pub startup_grace_secs: u64,
pub session_compositors: Vec<String>,
pub posture: Posture,
pub boot_ready_timeout_secs: u64,
pub journal_bytes: u64,
pub external_source: Option<ExternalSourceConfig>,
pub health_report_secs: u64,
pub allow_test_build: bool,
pub agent_limits: AgentLimits,
}Fields§
§owner: PathBuf§flake_attr: String§state_dir: PathBuf§max_tier: Tier§user_controllable_units: BTreeSet<String>§user_controllable_changes: BTreeSet<String>§user_controllable_options: BTreeSet<String>§runtime_allowlist: BTreeSet<String>§option_sensitivity: BTreeMap<String, Sensitivities>§catalog: CatalogConfig§runtime_options: Vec<RuntimeOptionConfig>§devices: BTreeMap<String, PathBuf>Device unit name → sysfs path.
admin_group: String§gc: GcBudget§12b collection bounds (services.planarian.gc).
startup_grace_secs: u64Seconds after a unit comes up during which a failing health probe is
not yet a fault (services.planarian.startupGrace).
session_compositors: Vec<String>Compositor process names for the per-session desktop check (§9).
posture: PostureThe failure posture (§12d). Phase A ships Standard.
boot_ready_timeout_secs: u64services.planarian.bootReadyTimeout, seconds (§12d).
journal_bytes: u64§external_source: Option<ExternalSourceConfig>The signed external desired-state source (§9 hook); none by default.
health_report_secs: u64Seconds between signed health reports (§10 hook); 0 turns them off.
allow_test_build: boolThis configuration is the gym’s own VM test, which may run the test build (§15, B-13). Anywhere else, a test build is an Integrity failure.
agent_limits: AgentLimitsLimits on launched agents (services.planarian.agents.limits, §12d).
Implementations§
Source§impl FileConfig
impl FileConfig
Trait Implementations§
Source§impl Clone for FileConfig
impl Clone for FileConfig
Source§fn clone(&self) -> FileConfig
fn clone(&self) -> FileConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileConfig
impl Debug for FileConfig
Source§impl Default for FileConfig
impl Default for FileConfig
Source§impl<'de> Deserialize<'de> for FileConfigwhere
FileConfig: Default,
impl<'de> Deserialize<'de> for FileConfigwhere
FileConfig: Default,
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
Auto Trait Implementations§
impl Freeze for FileConfig
impl RefUnwindSafe for FileConfig
impl Send for FileConfig
impl Sync for FileConfig
impl Unpin for FileConfig
impl UnsafeUnpin for FileConfig
impl UnwindSafe for FileConfig
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