pub enum AuthenticationCLIError {
ParseUrlError(ParseError),
MissingPassword,
NoAuthenticationMethod,
PrefixDevBadMethod,
AnacondaOrgBadMethod,
S3BadMethod,
AnyhowError(Error),
AuthenticationStorageError(AuthenticationStorageError),
ReqwestError(Error),
JsonParseError(String),
UnauthorizedToken,
}Expand description
Authentication errors that can be returned by the AuthenticationCLIError
Variants§
ParseUrlError(ParseError)
An error occurred when the input repository URL is parsed
MissingPassword
Basic authentication needs a username and a password. The password is missing here.
NoAuthenticationMethod
Authentication has not been provided in the input parameters.
PrefixDevBadMethod
Bad authentication method when using prefix.dev
AnacondaOrgBadMethod
Bad authentication method when using anaconda.org
S3BadMethod
Bad authentication method when using S3
AnyhowError(Error)
Wrapper for errors that are generated from the underlying storage system (keyring or file system)
AuthenticationStorageError(AuthenticationStorageError)
Wrapper for errors that are generated from the underlying storage system (keyring or file system)
ReqwestError(Error)
General http request error
JsonParseError(String)
JSON parsing failed
Token is unauthorized or invalid
Trait Implementations§
Source§impl Debug for AuthenticationCLIError
impl Debug for AuthenticationCLIError
Source§impl Display for AuthenticationCLIError
impl Display for AuthenticationCLIError
Source§impl Error for AuthenticationCLIError
impl Error for AuthenticationCLIError
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 From<AuthenticationStorageError> for AuthenticationCLIError
impl From<AuthenticationStorageError> for AuthenticationCLIError
Source§impl From<Error> for AuthenticationCLIError
impl From<Error> for AuthenticationCLIError
Source§impl From<Error> for AuthenticationCLIError
impl From<Error> for AuthenticationCLIError
Source§impl From<ParseError> for AuthenticationCLIError
impl From<ParseError> for AuthenticationCLIError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AuthenticationCLIError
impl !RefUnwindSafe for AuthenticationCLIError
impl Send for AuthenticationCLIError
impl Sync for AuthenticationCLIError
impl Unpin for AuthenticationCLIError
impl !UnwindSafe for AuthenticationCLIError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.