pub struct DenyAllPolicy { /* private fields */ }Expand description
Implementations§
Source§impl DenyAllPolicy
impl DenyAllPolicy
Sourcepub fn new() -> DenyAllPolicy
pub fn new() -> DenyAllPolicy
Create a new deny-all policy with a default message.
Sourcepub fn with_reason(reason: impl Into<String>) -> DenyAllPolicy
pub fn with_reason(reason: impl Into<String>) -> DenyAllPolicy
Create a deny-all policy with a custom reason.
Trait Implementations§
Source§impl Clone for DenyAllPolicy
impl Clone for DenyAllPolicy
Source§fn clone(&self) -> DenyAllPolicy
fn clone(&self) -> DenyAllPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 DenyAllPolicy
impl Debug for DenyAllPolicy
Source§impl Default for DenyAllPolicy
impl Default for DenyAllPolicy
Source§fn default() -> DenyAllPolicy
fn default() -> DenyAllPolicy
Returns the “default value” for a type. Read more
Source§impl PermissionPolicy for DenyAllPolicy
impl PermissionPolicy for DenyAllPolicy
Source§fn decide(&self, _request: &PermissionRequest) -> PolicyDecision
fn decide(&self, _request: &PermissionRequest) -> PolicyDecision
Decide how to handle a permission request. Read more
Source§fn supports_interaction(&self) -> bool
fn supports_interaction(&self) -> bool
Whether this policy supports interactive user questions. Read more
Auto Trait Implementations§
impl Freeze for DenyAllPolicy
impl RefUnwindSafe for DenyAllPolicy
impl Send for DenyAllPolicy
impl Sync for DenyAllPolicy
impl Unpin for DenyAllPolicy
impl UnwindSafe for DenyAllPolicy
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more