pub enum OpenError {
NotAccepting,
StaleBootId,
StaleProxyGeneration,
StaleResourceDigest,
StalePolicyDigest,
RejectedAllowlist {
rule: AccessRule,
denial: Denial,
},
MutationLeaseHeld,
MutationNotPermitted,
UnsupportedExpectation,
}Expand description
Why a session could not be opened.
Variants§
NotAccepting
The proxy is stopping and accepts no new sessions.
StaleBootId
The expected boot identity does not match.
StaleProxyGeneration
The expected proxy generation does not match.
StaleResourceDigest
The expected resource digest does not match.
StalePolicyDigest
The expected policy digest does not match.
RejectedAllowlist
An allowlist rule failed narrowing validation; no session exists.
MutationLeaseHeld
Another mutating session already holds the mutation lease.
MutationNotPermitted
Mutating sessions are not permitted by the target ceiling policy.
UnsupportedExpectation
The request set a reserved (phase 2) expectation field. Fail closed rather than silently ignoring the field.
Trait Implementations§
impl Eq for OpenError
impl StructuralPartialEq for OpenError
Auto Trait Implementations§
impl Freeze for OpenError
impl RefUnwindSafe for OpenError
impl Send for OpenError
impl Sync for OpenError
impl Unpin for OpenError
impl UnsafeUnpin for OpenError
impl UnwindSafe for OpenError
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.