pub struct AlwaysDenyHandler;Expand description
An approval handler that automatically denies all requests.
Trait Implementations§
Source§impl ApprovalHandler for AlwaysDenyHandler
impl ApprovalHandler for AlwaysDenyHandler
Source§fn request_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 ApprovalRequest,
) -> Pin<Box<dyn Future<Output = Result<ApprovalResult, ModuleError>> + 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 = Result<ApprovalResult, ModuleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Request approval for an operation. Returns the result.
Source§fn check_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
_approval_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ApprovalResult, ModuleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn check_approval<'life0, 'life1, 'async_trait>(
&'life0 self,
_approval_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ApprovalResult, ModuleError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Check the current status of a pending approval by ID.
Source§impl Clone for AlwaysDenyHandler
impl Clone for AlwaysDenyHandler
Source§fn clone(&self) -> AlwaysDenyHandler
fn clone(&self) -> AlwaysDenyHandler
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 AlwaysDenyHandler
impl RefUnwindSafe for AlwaysDenyHandler
impl Send for AlwaysDenyHandler
impl Sync for AlwaysDenyHandler
impl Unpin for AlwaysDenyHandler
impl UnsafeUnpin for AlwaysDenyHandler
impl UnwindSafe for AlwaysDenyHandler
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