pub enum IsolatedSettingsReason {
ExplicitOptIn,
ExplicitOptOut,
ChannelDefaultIsolated,
ChannelDefaultGlobal,
}Expand description
Which rule decided isolated_settings_enabled’s result — for
boot-time diagnostics, mirroring IsolatedAuthReason exactly (see
that type’s doc comment for the rationale: one resolution, two views,
so the boolean and the log line can never drift apart).
Variants§
ExplicitOptIn
AGENTMUX_ISOLATED_SETTINGS=1.
ExplicitOptOut
AGENTMUX_ISOLATED_SETTINGS is set to anything other than exactly
"1" — fail-safe by construction, same rule as
IsolatedAuthReason::ExplicitOptOut and for the same reason: a
typo’d opt-out attempt must not silently isolate a non-stable
channel instead of falling back to the safe (global) state.
ChannelDefaultIsolated
No override; AGENTMUX_CHANNEL is set and isn’t "stable".
ChannelDefaultGlobal
No override; AGENTMUX_CHANNEL is "stable" or unset entirely.
Implementations§
Trait Implementations§
Source§impl Clone for IsolatedSettingsReason
impl Clone for IsolatedSettingsReason
Source§fn clone(&self) -> IsolatedSettingsReason
fn clone(&self) -> IsolatedSettingsReason
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 IsolatedSettingsReason
Source§impl Debug for IsolatedSettingsReason
impl Debug for IsolatedSettingsReason
impl Eq for IsolatedSettingsReason
Source§impl PartialEq for IsolatedSettingsReason
impl PartialEq for IsolatedSettingsReason
impl StructuralPartialEq for IsolatedSettingsReason
Auto Trait Implementations§
impl Freeze for IsolatedSettingsReason
impl RefUnwindSafe for IsolatedSettingsReason
impl Send for IsolatedSettingsReason
impl Sync for IsolatedSettingsReason
impl Unpin for IsolatedSettingsReason
impl UnsafeUnpin for IsolatedSettingsReason
impl UnwindSafe for IsolatedSettingsReason
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