pub enum FleetProfile {
Default,
Hardened,
}Expand description
Admission profile governing fail-open vs fail-closed behaviour (S29).
Variants§
Default
Default posture: preconditions are best-effort; a failure fails OPEN with a named advisory.
Hardened
Hardened posture: a precondition failure fails CLOSED (refuse dispatch).
Implementations§
Source§impl FleetProfile
impl FleetProfile
Sourcepub fn from_raw(raw: Option<&str>) -> Self
pub fn from_raw(raw: Option<&str>) -> Self
Resolve the profile from raw (the CELLOS_FLEET_PROFILE value).
"hardened" (case-insensitive, trimmed) selects FleetProfile::Hardened;
anything else — including unset — is FleetProfile::Default.
Sourcepub fn from_env() -> Self
pub fn from_env() -> Self
Resolve the profile from FLEET_PROFILE_ENV.
Sourcepub fn is_hardened(&self) -> bool
pub fn is_hardened(&self) -> bool
true for the hardened (fail-closed) posture.
Trait Implementations§
Source§impl Clone for FleetProfile
impl Clone for FleetProfile
Source§fn clone(&self) -> FleetProfile
fn clone(&self) -> FleetProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FleetProfile
Source§impl Debug for FleetProfile
impl Debug for FleetProfile
impl Eq for FleetProfile
Source§impl PartialEq for FleetProfile
impl PartialEq for FleetProfile
Source§fn eq(&self, other: &FleetProfile) -> bool
fn eq(&self, other: &FleetProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FleetProfile
Auto Trait Implementations§
impl Freeze for FleetProfile
impl RefUnwindSafe for FleetProfile
impl Send for FleetProfile
impl Sync for FleetProfile
impl Unpin for FleetProfile
impl UnsafeUnpin for FleetProfile
impl UnwindSafe for FleetProfile
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