pub struct StaticApprovalHandler { /* private fields */ }Implementations§
Source§impl StaticApprovalHandler
impl StaticApprovalHandler
pub fn allow_once() -> Self
pub fn deny() -> Self
Trait Implementations§
Source§impl ApprovalHandler for StaticApprovalHandler
impl ApprovalHandler for StaticApprovalHandler
fn review<'a>( &'a mut self, _request: ApprovalRequest, ) -> BoxFuture<'a, Result<ApprovalDecision, ApprovalError>>
Source§impl Clone for StaticApprovalHandler
impl Clone for StaticApprovalHandler
Source§fn clone(&self) -> StaticApprovalHandler
fn clone(&self) -> StaticApprovalHandler
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 moreimpl Copy for StaticApprovalHandler
Auto Trait Implementations§
impl Freeze for StaticApprovalHandler
impl RefUnwindSafe for StaticApprovalHandler
impl Send for StaticApprovalHandler
impl Sync for StaticApprovalHandler
impl Unpin for StaticApprovalHandler
impl UnsafeUnpin for StaticApprovalHandler
impl UnwindSafe for StaticApprovalHandler
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