pub enum GuardStatus {
Passed,
Skipped {
note: String,
},
Rejected {
reason: RejectReason,
},
}Expand description
Outcome of one guard inside an AcceptReport.
Variants§
Passed
The guard ran and found nothing wrong.
Skipped
The guard did not run; note records why.
Rejected
The guard refused the attempt.
Fields
§
reason: RejectReasonTyped rejection with its trace.
Trait Implementations§
Source§impl Clone for GuardStatus
impl Clone for GuardStatus
Source§fn clone(&self) -> GuardStatus
fn clone(&self) -> GuardStatus
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 GuardStatus
impl Debug for GuardStatus
Source§impl<'de> Deserialize<'de> for GuardStatus
impl<'de> Deserialize<'de> for GuardStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GuardStatus
Source§impl PartialEq for GuardStatus
impl PartialEq for GuardStatus
Source§fn eq(&self, other: &GuardStatus) -> bool
fn eq(&self, other: &GuardStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GuardStatus
impl Serialize for GuardStatus
impl StructuralPartialEq for GuardStatus
Auto Trait Implementations§
impl Freeze for GuardStatus
impl RefUnwindSafe for GuardStatus
impl Send for GuardStatus
impl Sync for GuardStatus
impl Unpin for GuardStatus
impl UnsafeUnpin for GuardStatus
impl UnwindSafe for GuardStatus
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