pub enum AccessDecision {
Permit,
Deny,
}Expand description
Whether an action may be performed. Deliberately sparse — no
reason string, because the reason must not reveal anything to the
remote (logging via crate::LoggingPlugin).
Variants§
Implementations§
Source§impl AccessDecision
impl AccessDecision
Sourcepub fn is_permitted(self) -> bool
pub fn is_permitted(self) -> bool
true if Permit.
Trait Implementations§
Source§impl Clone for AccessDecision
impl Clone for AccessDecision
Source§fn clone(&self) -> AccessDecision
fn clone(&self) -> AccessDecision
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 AccessDecision
Source§impl Debug for AccessDecision
impl Debug for AccessDecision
impl Eq for AccessDecision
Source§impl PartialEq for AccessDecision
impl PartialEq for AccessDecision
impl StructuralPartialEq for AccessDecision
Auto Trait Implementations§
impl Freeze for AccessDecision
impl RefUnwindSafe for AccessDecision
impl Send for AccessDecision
impl Sync for AccessDecision
impl Unpin for AccessDecision
impl UnsafeUnpin for AccessDecision
impl UnwindSafe for AccessDecision
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