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
Source§fn eq(&self, other: &GuardRefusal) -> bool
fn eq(&self, other: &GuardRefusal) -> bool
Tests for
self and other values to be equal, and is used by ==.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