pub enum DenySource {
Policy,
Headless,
Timeout,
Client,
}Expand description
Why a call was refused, and what Event::PermissionResolved.source says.
Test: headless_ask_is_denied, timed_out_ask_is_denied, client_deny_is_denied.
Variants§
Policy
A deny rule, or the legacy tcode_tools allowlist.
Headless
An ask with nobody able to answer it.
Timeout
An ask nobody answered in time, or whose request was abandoned.
Client
An ask a client answered with deny.
Implementations§
Trait Implementations§
Source§impl Clone for DenySource
impl Clone for DenySource
impl Copy for DenySource
Source§impl Debug for DenySource
impl Debug for DenySource
impl Eq for DenySource
Source§impl PartialEq for DenySource
impl PartialEq for DenySource
impl StructuralPartialEq for DenySource
Auto Trait Implementations§
impl Freeze for DenySource
impl RefUnwindSafe for DenySource
impl Send for DenySource
impl Sync for DenySource
impl Unpin for DenySource
impl UnsafeUnpin for DenySource
impl UnwindSafe for DenySource
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreCreates a shared type from an unshared type.