pub enum ServiceRefusal {
NotAService,
Binding(SubjectBindingError),
Decision(AccessDecisionError),
PolicyUnavailable,
NoOperation,
Effect(ServiceEffectError),
}Expand description
Why a subject was not served, by name.
Variants§
NotAService
No service serves the subject.
Binding(SubjectBindingError)
The subject could not be bound.
Decision(AccessDecisionError)
The decision refused it: a missing grant, an expired pass, or the
deliberate seam being absent or offline (deliberate_unavailable).
Lys holds no budget or stop policy for the holder; liminal sets none.
NoOperation
The request named no operation id, so its effect could not be made once; nothing was decided or done.
Effect(ServiceEffectError)
The effect failed after the grant allowed it.
Trait Implementations§
Source§impl Debug for ServiceRefusal
impl Debug for ServiceRefusal
Source§impl Display for ServiceRefusal
impl Display for ServiceRefusal
impl Eq for ServiceRefusal
Source§impl Error for ServiceRefusal
impl Error for ServiceRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ServiceRefusal
impl PartialEq for ServiceRefusal
impl StructuralPartialEq for ServiceRefusal
Auto Trait Implementations§
impl Freeze for ServiceRefusal
impl RefUnwindSafe for ServiceRefusal
impl Send for ServiceRefusal
impl Sync for ServiceRefusal
impl Unpin for ServiceRefusal
impl UnsafeUnpin for ServiceRefusal
impl UnwindSafe for ServiceRefusal
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.