pub enum GateDecision {
Allow,
Deny(String),
Ask(GateAsk),
}Expand description
What a ToolGate decides about one call.
Variants§
Allow
Run it.
Deny(String)
Do not run it; the reason is the call’s result.
Ask(GateAsk)
Ask someone and wait for the answer. Only this call waits.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GateDecision
impl !Sync for GateDecision
impl !UnwindSafe for GateDecision
impl Freeze for GateDecision
impl Send for GateDecision
impl Unpin for GateDecision
impl UnsafeUnpin 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