pub struct GuardRefusal { /* private fields */ }Expand description
Record of a denied action paired with the reason it was refused.
Implementations§
Source§impl GuardRefusal
impl GuardRefusal
Sourcepub fn new(action: AtelierAction, reason: impl Into<String>) -> Self
pub fn new(action: AtelierAction, reason: impl Into<String>) -> Self
Builds a refusal for an action and its reason.
Sourcepub fn action(&self) -> &AtelierAction
pub fn action(&self) -> &AtelierAction
Returns the refused action.
Trait Implementations§
Source§impl Clone for GuardRefusal
impl Clone for GuardRefusal
Source§fn clone(&self) -> GuardRefusal
fn clone(&self) -> GuardRefusal
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 Debug for GuardRefusal
impl Debug for GuardRefusal
impl Eq for GuardRefusal
Source§impl PartialEq for GuardRefusal
impl PartialEq for GuardRefusal
impl StructuralPartialEq for GuardRefusal
Auto Trait Implementations§
impl Freeze for GuardRefusal
impl RefUnwindSafe for GuardRefusal
impl Send for GuardRefusal
impl Sync for GuardRefusal
impl Unpin for GuardRefusal
impl UnsafeUnpin for GuardRefusal
impl UnwindSafe for GuardRefusal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.