pub enum ClientResolutionError {
Config(ConfigError),
ProfileTypeMismatch {
name: String,
actual_type: DeploymentType,
expected_type: DeploymentType,
available_profiles: Vec<String>,
},
MissingCredentials {
profile_name: String,
deployment_type: DeploymentType,
missing_fields: String,
},
CloudClient(CloudError),
EnterpriseClient(RestError),
}Expand description
Errors produced while resolving connection settings or building API clients.
Variants§
Config(ConfigError)
The redisctl configuration could not be resolved.
ProfileTypeMismatch
A selected profile has the wrong deployment type.
Fields
§
actual_type: DeploymentTypeDeployment type stored on the selected profile.
§
expected_type: DeploymentTypeDeployment type required by the requested client.
MissingCredentials
Required credential fields were empty or absent.
Fields
§
profile_name: StringProfile name, or environment when a complete environment-only
configuration was selected.
§
deployment_type: DeploymentTypeDeployment type being resolved.
CloudClient(CloudError)
Redis Cloud client construction failed.
EnterpriseClient(RestError)
Redis Enterprise client construction failed.
Trait Implementations§
Source§impl Debug for ClientResolutionError
impl Debug for ClientResolutionError
Source§impl Display for ClientResolutionError
impl Display for ClientResolutionError
Source§impl Error for ClientResolutionError
impl Error for ClientResolutionError
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<ConfigError> for ClientResolutionError
impl From<ConfigError> for ClientResolutionError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ClientResolutionError
impl !UnwindSafe for ClientResolutionError
impl Freeze for ClientResolutionError
impl Send for ClientResolutionError
impl Sync for ClientResolutionError
impl Unpin for ClientResolutionError
impl UnsafeUnpin for ClientResolutionError
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> ErasedDestructor for Twhere
T: 'static,
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.