pub enum ConsentError {
Show 18 variants
Required {
consent_id: String,
kind: Kind,
},
Denied,
Expired,
RecordInvalid,
WebOnly {
consent_id: String,
},
TerminalOnly,
PresenceRequiredByPolicy {
consent_id: String,
},
ChannelRefused(String),
NotFound,
InvalidSubject(String),
InvalidState,
WebTimeout,
PresenceCancelled,
HelperMissing,
HelperSignature,
PolicyExpired(String),
BrowserUnsupported,
Local(String),
}Expand description
Why a consent-gated step did not run. code() is the C0/engine error
code; Display is the person-facing text of SPEC-ENGINE §3.17.
Variants§
Required
A request waits for the person (consent_required).
Denied
The person declined (consent_denied).
Expired
Older than 24 h (consent_expired).
RecordInvalid
A record failed its proof check (consent_record_invalid).
WebOnly
A proof only the web flow gives (consent_web_only).
TerminalOnly
api_key_set outside the terminal (consent_terminal_only).
PresenceRequiredByPolicy
Tty-only approval refused by workspace policy.
ChannelRefused(String)
The approval channel refused (no TTY, agent ancestry, wrong typed value); nothing was stored.
NotFound
Not a request of this engine.
InvalidSubject(String)
A subject of the wrong shape for its kind (a caller bug).
InvalidState
Already answered.
WebTimeout
No browser answer within 10 minutes (consent_web_timeout).
PresenceCancelled
The person cancelled the system dialog (presence_cancelled).
HelperMissing
LeanCTX Consent.app is not installed (helper_missing).
HelperSignature
The helper is not ours (helper_signature).
PolicyExpired(String)
A sensitive operation under an expired, missing or damaged Cloud
policy (policy_authorisation_expired); fails closed.
BrowserUnsupported
The Cloud does not offer the browser binding of an app’s first
share yet (400 invalid_request naming binding).
Local(String)
Implementations§
Trait Implementations§
Source§impl Clone for ConsentError
impl Clone for ConsentError
Source§impl Debug for ConsentError
impl Debug for ConsentError
Source§impl Display for ConsentError
impl Display for ConsentError
impl Eq for ConsentError
Source§impl Error for ConsentError
impl Error for ConsentError
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 From<ConsentError> for CloudError
impl From<ConsentError> for CloudError
Source§fn from(error: ConsentError) -> Self
fn from(error: ConsentError) -> Self
Source§impl From<ConsentError> for MapError
impl From<ConsentError> for MapError
Source§fn from(error: ConsentError) -> Self
fn from(error: ConsentError) -> Self
Source§impl PartialEq for ConsentError
impl PartialEq for ConsentError
impl StructuralPartialEq for ConsentError
Auto Trait Implementations§
impl Forget for ConsentError
impl Freeze for ConsentError
impl Move for ConsentError
impl RefUnwindSafe for ConsentError
impl Send for ConsentErrorwhere
RawVecInner: Send,
impl Sync for ConsentErrorwhere
RawVecInner: Sync,
impl Unpin for ConsentError
impl UnsafeUnpin for ConsentError
impl UnwindSafe for ConsentErrorwhere
RawVecInner: UnwindSafe,
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
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> 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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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