pub struct DenyAllApprovalHandler { /* private fields */ }Expand description
Approval handler that rejects every server request with a JSON-RPC error.
This is the safest first-mile default for examples and smoke tests: Codex can keep running, but no command, file-change, permission, elicitation, or dynamic-tool request is silently accepted.
Implementations§
Trait Implementations§
Source§impl ApprovalHandler for DenyAllApprovalHandler
impl ApprovalHandler for DenyAllApprovalHandler
fn handle<'a>(&'a self, _request: &'a ServerRequest) -> ApprovalFuture<'a>
Source§impl Clone for DenyAllApprovalHandler
impl Clone for DenyAllApprovalHandler
Source§fn clone(&self) -> DenyAllApprovalHandler
fn clone(&self) -> DenyAllApprovalHandler
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 moreSource§impl Debug for DenyAllApprovalHandler
impl Debug for DenyAllApprovalHandler
Auto Trait Implementations§
impl Freeze for DenyAllApprovalHandler
impl RefUnwindSafe for DenyAllApprovalHandler
impl Send for DenyAllApprovalHandler
impl Sync for DenyAllApprovalHandler
impl Unpin for DenyAllApprovalHandler
impl UnsafeUnpin for DenyAllApprovalHandler
impl UnwindSafe for DenyAllApprovalHandler
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