pub struct ExecContext {
pub explicit_exec: bool,
pub proof_mode: bool,
pub force_remote: bool,
}Expand description
The execution context + explicit overrides for the policy.
Fields§
§explicit_exec: boolTrue for explicit rch exec; false for the PreToolUse hook.
proof_mode: boolProof/strict-remote mode is in force.
force_remote: boolAn explicit force-remote override (RCH_FORCE_REMOTE).
Implementations§
Trait Implementations§
Source§impl Clone for ExecContext
impl Clone for ExecContext
impl Copy for ExecContext
Source§impl Debug for ExecContext
impl Debug for ExecContext
impl Eq for ExecContext
Source§impl PartialEq for ExecContext
impl PartialEq for ExecContext
impl StructuralPartialEq for ExecContext
Auto Trait Implementations§
impl Freeze for ExecContext
impl RefUnwindSafe for ExecContext
impl Send for ExecContext
impl Sync for ExecContext
impl Unpin for ExecContext
impl UnsafeUnpin for ExecContext
impl UnwindSafe for ExecContext
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.