pub enum RevocationRefusal {
GrantRevoked,
BindingMissing,
RevisionUnavailable,
StreamUnavailable,
StreamGap,
LogReset,
ProtocolUnsupported,
}Expand description
A revocation decision failure, by its stable public name (ACCESS-005 R5).
A refused Connect carries the name alone as its ConnectError message
under reason 0x0006; a refused hot operation carries it as its error
message. No variant carries credential, holder, live-prefix or grant-chain
bytes.
Variants§
GrantRevoked
The right the operation or connection needs was withdrawn by a Lys grant revocation.
BindingMissing
No authenticated grant-decision binding matches the presented credential, or the binding covers no right for the operation.
The local cache has not applied the revision the binding requires, or a needed decision could not be acquired at a current revision.
The grant-change stream is not ready: never ready yet, its transport is lost, or it ended on a terminal error.
StreamGap
The grant-change stream skipped a revision no trusted evidence covers.
LogReset
The grant log was replaced; its revisions cannot be compared with the binding’s until the new log’s baseline settles.
ProtocolUnsupported
The peer cannot negotiate the reason-bearing close this policy requires before admission.
Implementations§
Source§impl RevocationRefusal
impl RevocationRefusal
Sourcepub const fn close_reason(self) -> Option<DisconnectReason>
pub const fn close_reason(self) -> Option<DisconnectReason>
The reason-bearing close this refusal ends a live connection with, when it is one a live connection can be closed for.
Trait Implementations§
Source§impl Clone for RevocationRefusal
impl Clone for RevocationRefusal
impl Copy for RevocationRefusal
Source§impl Debug for RevocationRefusal
impl Debug for RevocationRefusal
Source§impl Display for RevocationRefusal
impl Display for RevocationRefusal
impl Eq for RevocationRefusal
Source§impl Error for RevocationRefusal
impl Error for RevocationRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl Hash for RevocationRefusal
impl Hash for RevocationRefusal
Source§impl Ord for RevocationRefusal
impl Ord for RevocationRefusal
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RevocationRefusal
impl PartialEq for RevocationRefusal
Source§impl PartialOrd for RevocationRefusal
impl PartialOrd for RevocationRefusal
impl StructuralPartialEq for RevocationRefusal
Auto Trait Implementations§
impl Freeze for RevocationRefusal
impl RefUnwindSafe for RevocationRefusal
impl Send for RevocationRefusal
impl Sync for RevocationRefusal
impl Unpin for RevocationRefusal
impl UnsafeUnpin for RevocationRefusal
impl UnwindSafe for RevocationRefusal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.