pub enum TrellisAuthError {
Show 17 variants
ContractJson(Error),
Url(ParseError),
Http(Error),
Io(Error),
TrellisClient(TrellisClientError),
LoginTimedOut,
LoginInterrupted,
InvalidCallbackRequest,
MissingAuthToken,
AuthFlowFailed(String),
BindHttpFailure(u16, String),
UnexpectedBindStatus(String),
InvalidArgument(String),
OperationFailed(String),
WorkloadActivationWaitFailure(u16, String),
WorkloadActivationRejected(String),
NotAdmin,
}Expand description
Errors returned by Trellis auth and admin-session helpers.
Variants§
ContractJson(Error)
The supplied contract JSON could not be parsed.
Url(ParseError)
A configured auth or callback URL was invalid.
Http(Error)
The HTTP transport used for browser login or bind requests failed.
Io(Error)
Local filesystem persistence or callback listener I/O failed.
TrellisClient(TrellisClientError)
The underlying Trellis RPC client returned an error.
LoginTimedOut
The browser login callback never arrived before the timeout.
LoginInterrupted
The local browser login callback listener shut down before completion.
InvalidCallbackRequest
The local callback request was missing the expected query or fragment shape.
MissingAuthToken
The callback completed without returning an auth token.
AuthFlowFailed(String)
The auth service returned a terminal flow error.
BindHttpFailure(u16, String)
The low-level bind endpoint returned a non-success HTTP response.
UnexpectedBindStatus(String)
The bind endpoint returned a response shape this crate does not understand.
InvalidArgument(String)
The caller supplied arguments that violate the Trellis auth invariants.
OperationFailed(String)
A helper wrapped operation finished without a usable successful result.
WorkloadActivationWaitFailure(u16, String)
A workload activation wait request returned a non-success HTTP response.
WorkloadActivationRejected(String)
Workload activation was explicitly rejected.
NotAdmin
The authenticated user completed login successfully but lacks admin capability.
Trait Implementations§
Source§impl Debug for TrellisAuthError
impl Debug for TrellisAuthError
Source§impl Display for TrellisAuthError
impl Display for TrellisAuthError
Source§impl Error for TrellisAuthError
impl Error for TrellisAuthError
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<Error> for TrellisAuthError
impl From<Error> for TrellisAuthError
Source§impl From<Error> for TrellisAuthError
impl From<Error> for TrellisAuthError
Source§impl From<Error> for TrellisAuthError
impl From<Error> for TrellisAuthError
Source§impl From<ParseError> for TrellisAuthError
impl From<ParseError> for TrellisAuthError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Source§impl From<TrellisClientError> for TrellisAuthError
impl From<TrellisClientError> for TrellisAuthError
Source§fn from(source: TrellisClientError) -> Self
fn from(source: TrellisClientError) -> Self
Auto Trait Implementations§
impl Freeze for TrellisAuthError
impl !RefUnwindSafe for TrellisAuthError
impl Send for TrellisAuthError
impl Sync for TrellisAuthError
impl Unpin for TrellisAuthError
impl UnsafeUnpin for TrellisAuthError
impl !UnwindSafe for TrellisAuthError
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
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.