pub struct DenyAllHandler;Expand description
A handler that denies every request — for locked-down mode.
The strictest ref in the business. No moves get through without an explicit policy allowing them.
Trait Implementations§
Source§impl ApprovalHandler for DenyAllHandler
impl ApprovalHandler for DenyAllHandler
Source§fn request_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = PunchResult<ApprovalDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn request_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = PunchResult<ApprovalDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Request approval for a tool call. The cornerman reviews the request
and returns their decision.
Source§impl Clone for DenyAllHandler
impl Clone for DenyAllHandler
Source§fn clone(&self) -> DenyAllHandler
fn clone(&self) -> DenyAllHandler
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 moreAuto Trait Implementations§
impl Freeze for DenyAllHandler
impl RefUnwindSafe for DenyAllHandler
impl Send for DenyAllHandler
impl Sync for DenyAllHandler
impl Unpin for DenyAllHandler
impl UnsafeUnpin for DenyAllHandler
impl UnwindSafe for DenyAllHandler
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