#[non_exhaustive]pub enum AdaptiveMode {
Keep,
Shadow,
Active,
}Expand description
Operating mode of an Adaptive Kernel Protocol v1 session.
The protocol always defaults to AdaptiveMode::Keep so no executable
policy mutation occurs unless explicitly enabled by the host.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Keep
Observe only; emit no executable or shadow policy proposals.
Shadow
Emit non-executable trial snapshots that cannot be acknowledged as applied.
Active
Emit bounded, immutable policy snapshots eligible for host application.
Trait Implementations§
Source§impl Clone for AdaptiveMode
impl Clone for AdaptiveMode
impl Copy for AdaptiveMode
Source§impl Debug for AdaptiveMode
impl Debug for AdaptiveMode
Source§impl Default for AdaptiveMode
impl Default for AdaptiveMode
Source§impl<'de> Deserialize<'de> for AdaptiveMode
impl<'de> Deserialize<'de> for AdaptiveMode
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
impl Eq for AdaptiveMode
Source§impl PartialEq for AdaptiveMode
impl PartialEq for AdaptiveMode
Source§impl Serialize for AdaptiveMode
impl Serialize for AdaptiveMode
impl StructuralPartialEq for AdaptiveMode
Auto Trait Implementations§
impl Forget for AdaptiveMode
impl Freeze for AdaptiveMode
impl Move for AdaptiveMode
impl RefUnwindSafe for AdaptiveMode
impl Send for AdaptiveMode
impl Sync for AdaptiveMode
impl Unpin for AdaptiveMode
impl UnsafeUnpin for AdaptiveMode
impl UnwindSafe for AdaptiveMode
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