pub struct DenyGuard;Expand description
A guard that unconditionally denies all actions.
Useful for testing guard interception and abort flows.
§Example
use traitclaw_test_utils::tools::DenyGuard;
use traitclaw_core::traits::guard::Guard;
let guard = DenyGuard;
assert_eq!(guard.name(), "deny-all");Trait Implementations§
Auto Trait Implementations§
impl Freeze for DenyGuard
impl RefUnwindSafe for DenyGuard
impl Send for DenyGuard
impl Sync for DenyGuard
impl Unpin for DenyGuard
impl UnsafeUnpin for DenyGuard
impl UnwindSafe for DenyGuard
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