pub struct FleetConfigSnapshot { /* private fields */ }Expand description
One immutable, validated view of a fleet configuration file.
Commands that need several projections should load this once so every decision is derived from the same bytes on disk.
Implementations§
Source§impl FleetConfigSnapshot
impl FleetConfigSnapshot
pub fn load(path: &Path) -> Result<Self, FleetConfigError>
pub const fn model(&self) -> &ConfigModel
pub const fn fleet_name(&self) -> &str
pub fn deployable_roles(&self) -> Vec<String>
pub fn bootstrap_roles(&self) -> Vec<String>
pub fn local_root_create_cycles(&self) -> u128
pub fn controllers(&self) -> Vec<String>
pub fn pool_expectations(&self) -> Vec<ConfiguredPoolExpectation>
pub fn role_lifecycle(&self) -> Vec<ConfiguredRoleLifecycle>
pub fn role_kinds(&self) -> BTreeMap<String, String>
pub fn role_capabilities( &self, ) -> Result<BTreeMap<String, Vec<String>>, FleetConfigError>
pub fn role_auto_create(&self) -> BTreeSet<String>
pub fn role_topups(&self) -> BTreeMap<String, String>
pub fn role_metrics_profiles(&self) -> BTreeMap<String, String>
pub fn role_details(&self) -> BTreeMap<String, Vec<String>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FleetConfigSnapshot
impl RefUnwindSafe for FleetConfigSnapshot
impl Send for FleetConfigSnapshot
impl Sync for FleetConfigSnapshot
impl Unpin for FleetConfigSnapshot
impl UnsafeUnpin for FleetConfigSnapshot
impl UnwindSafe for FleetConfigSnapshot
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