pub struct DenyingConfirmationService;Expand description
Fails closed: every request is denied.
The safe default for headless runs, CLI builds and any product that never wired a real prompt — a product that cannot ask a human cannot let an external AI write through the MCP boundary.
Trait Implementations§
Source§impl Clone for DenyingConfirmationService
impl Clone for DenyingConfirmationService
Source§fn clone(&self) -> DenyingConfirmationService
fn clone(&self) -> DenyingConfirmationService
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 ConfirmationService for DenyingConfirmationService
impl ConfirmationService for DenyingConfirmationService
fn confirm<'life0, 'async_trait>(
&'life0 self,
request: ConfirmationRequest,
) -> Pin<Box<dyn Future<Output = Result<ConfirmationDecision>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
impl Copy for DenyingConfirmationService
Source§impl Debug for DenyingConfirmationService
impl Debug for DenyingConfirmationService
Source§impl Default for DenyingConfirmationService
impl Default for DenyingConfirmationService
Source§fn default() -> DenyingConfirmationService
fn default() -> DenyingConfirmationService
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DenyingConfirmationService
impl RefUnwindSafe for DenyingConfirmationService
impl Send for DenyingConfirmationService
impl Sync for DenyingConfirmationService
impl Unpin for DenyingConfirmationService
impl UnsafeUnpin for DenyingConfirmationService
impl UnwindSafe for DenyingConfirmationService
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