pub enum GateDecision {
Permit {
confidence: f64,
ttl_ns: u64,
reason: Option<String>,
},
Defer {
wait_ns: u64,
uncertainty: f64,
},
Deny {
risk_level: f64,
recommended_action: String,
affected_regions: Vec<u32>,
},
}Expand description
Gate decision output
Variants§
Permit
Permit the operation - low risk
Fields
Defer
Defer - uncertain, need more data
Deny
Deny - high risk detected
Trait Implementations§
Source§impl Clone for GateDecision
impl Clone for GateDecision
Source§fn clone(&self) -> GateDecision
fn clone(&self) -> GateDecision
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GateDecision
impl Debug for GateDecision
Source§impl Default for GateDecision
impl Default for GateDecision
Source§impl PartialEq for GateDecision
impl PartialEq for GateDecision
impl StructuralPartialEq for GateDecision
Auto Trait Implementations§
impl Freeze for GateDecision
impl RefUnwindSafe for GateDecision
impl Send for GateDecision
impl Sync for GateDecision
impl Unpin for GateDecision
impl UnwindSafe for GateDecision
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more