pub struct AutoDenyHandler;Expand description
Built-in handler that always denies approval requests.
Useful as a safe default when no interactive handler is configured.
Trait Implementations§
Source§impl ApprovalHandler for AutoDenyHandler
impl ApprovalHandler for AutoDenyHandler
Source§fn ask<'life0, 'async_trait>(
&'life0 self,
_request: ApprovalRequest,
) -> Pin<Box<dyn Future<Output = ApprovalDecision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn ask<'life0, 'async_trait>(
&'life0 self,
_request: ApprovalRequest,
) -> Pin<Box<dyn Future<Output = ApprovalDecision> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Present the request to the user/host and return their decision.
Source§impl Clone for AutoDenyHandler
impl Clone for AutoDenyHandler
Source§fn clone(&self) -> AutoDenyHandler
fn clone(&self) -> AutoDenyHandler
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 moreSource§impl Debug for AutoDenyHandler
impl Debug for AutoDenyHandler
Source§impl Default for AutoDenyHandler
impl Default for AutoDenyHandler
Source§fn default() -> AutoDenyHandler
fn default() -> AutoDenyHandler
Returns the “default value” for a type. Read more
impl Copy for AutoDenyHandler
Auto Trait Implementations§
impl Freeze for AutoDenyHandler
impl RefUnwindSafe for AutoDenyHandler
impl Send for AutoDenyHandler
impl Sync for AutoDenyHandler
impl Unpin for AutoDenyHandler
impl UnsafeUnpin for AutoDenyHandler
impl UnwindSafe for AutoDenyHandler
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