Skip to main content

FileConfig

Struct FileConfig 

Source
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: u64

Seconds 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: Posture

The failure posture (§12d). Phase A ships Standard.

§boot_ready_timeout_secs: u64

services.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: u64

Seconds between signed health reports (§10 hook); 0 turns them off.

§allow_test_build: bool

This 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: AgentLimits

Limits on launched agents (services.planarian.agents.limits, §12d).

Implementations§

Trait Implementations§

Source§

impl Clone for FileConfig

Source§

fn clone(&self) -> FileConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FileConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FileConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for FileConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for FileConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,