#[non_exhaustive]pub enum Error {
Show 29 variants
    ClusterAlreadyExistsFault(ClusterAlreadyExistsFault),
    ClusterNotFoundFault(ClusterNotFoundFault),
    ClusterQuotaForCustomerExceededFault(ClusterQuotaForCustomerExceededFault),
    InsufficientClusterCapacityFault(InsufficientClusterCapacityFault),
    InvalidArnFault(InvalidArnFault),
    InvalidClusterStateFault(InvalidClusterStateFault),
    InvalidParameterCombinationException(InvalidParameterCombinationException),
    InvalidParameterGroupStateFault(InvalidParameterGroupStateFault),
    InvalidParameterValueException(InvalidParameterValueException),
    InvalidSubnet(InvalidSubnet),
    InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault),
    NodeNotFoundFault(NodeNotFoundFault),
    NodeQuotaForClusterExceededFault(NodeQuotaForClusterExceededFault),
    NodeQuotaForCustomerExceededFault(NodeQuotaForCustomerExceededFault),
    ParameterGroupAlreadyExistsFault(ParameterGroupAlreadyExistsFault),
    ParameterGroupNotFoundFault(ParameterGroupNotFoundFault),
    ParameterGroupQuotaExceededFault(ParameterGroupQuotaExceededFault),
    ServiceLinkedRoleNotFoundFault(ServiceLinkedRoleNotFoundFault),
    ServiceQuotaExceededException(ServiceQuotaExceededException),
    SubnetGroupAlreadyExistsFault(SubnetGroupAlreadyExistsFault),
    SubnetGroupInUseFault(SubnetGroupInUseFault),
    SubnetGroupNotFoundFault(SubnetGroupNotFoundFault),
    SubnetGroupQuotaExceededFault(SubnetGroupQuotaExceededFault),
    SubnetInUse(SubnetInUse),
    SubnetNotAllowedFault(SubnetNotAllowedFault),
    SubnetQuotaExceededFault(SubnetQuotaExceededFault),
    TagNotFoundFault(TagNotFoundFault),
    TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded),
    Unhandled(Unhandled),
}Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ClusterAlreadyExistsFault(ClusterAlreadyExistsFault)
You already have a DAX cluster with the given identifier.
ClusterNotFoundFault(ClusterNotFoundFault)
The requested cluster ID does not refer to an existing DAX cluster.
ClusterQuotaForCustomerExceededFault(ClusterQuotaForCustomerExceededFault)
You have attempted to exceed the maximum number of DAX clusters for your Amazon Web Services account.
InsufficientClusterCapacityFault(InsufficientClusterCapacityFault)
There are not enough system resources to create the cluster you requested (or to resize an already-existing cluster).
InvalidArnFault(InvalidArnFault)
The Amazon Resource Name (ARN) supplied in the request is not valid.
InvalidClusterStateFault(InvalidClusterStateFault)
The requested DAX cluster is not in the available state.
InvalidParameterCombinationException(InvalidParameterCombinationException)
Two or more incompatible parameters were specified.
InvalidParameterGroupStateFault(InvalidParameterGroupStateFault)
One or more parameters in a parameter group are in an invalid state.
InvalidParameterValueException(InvalidParameterValueException)
The value for a parameter is invalid.
InvalidSubnet(InvalidSubnet)
An invalid subnet identifier was specified.
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault)
The VPC network is in an invalid state.
NodeNotFoundFault(NodeNotFoundFault)
None of the nodes in the cluster have the given node ID.
NodeQuotaForClusterExceededFault(NodeQuotaForClusterExceededFault)
You have attempted to exceed the maximum number of nodes for a DAX cluster.
NodeQuotaForCustomerExceededFault(NodeQuotaForCustomerExceededFault)
You have attempted to exceed the maximum number of nodes for your Amazon Web Services account.
ParameterGroupAlreadyExistsFault(ParameterGroupAlreadyExistsFault)
The specified parameter group already exists.
ParameterGroupNotFoundFault(ParameterGroupNotFoundFault)
The specified parameter group does not exist.
ParameterGroupQuotaExceededFault(ParameterGroupQuotaExceededFault)
You have attempted to exceed the maximum number of parameter groups.
ServiceLinkedRoleNotFoundFault(ServiceLinkedRoleNotFoundFault)
The specified service linked role (SLR) was not found.
ServiceQuotaExceededException(ServiceQuotaExceededException)
You have reached the maximum number of x509 certificates that can be created for encrypted clusters in a 30 day period. Contact Amazon Web Services customer support to discuss options for continuing to create encrypted clusters.
SubnetGroupAlreadyExistsFault(SubnetGroupAlreadyExistsFault)
The specified subnet group already exists.
SubnetGroupInUseFault(SubnetGroupInUseFault)
The specified subnet group is currently in use.
SubnetGroupNotFoundFault(SubnetGroupNotFoundFault)
The requested subnet group name does not refer to an existing subnet group.
SubnetGroupQuotaExceededFault(SubnetGroupQuotaExceededFault)
The request cannot be processed because it would exceed the allowed number of subnets in a subnet group.
SubnetInUse(SubnetInUse)
The requested subnet is being used by another subnet group.
SubnetNotAllowedFault(SubnetNotAllowedFault)
The specified subnet can't be used for the requested network type. This error occurs when either there aren't enough subnets of the required network type to create the cluster, or when you try to use a subnet that doesn't support the requested network type (for example, trying to create a dual-stack cluster with a subnet that doesn't have IPv6 CIDR).
SubnetQuotaExceededFault(SubnetQuotaExceededFault)
The request cannot be processed because it would exceed the allowed number of subnets in a subnet group.
TagNotFoundFault(TagNotFoundFault)
The tag does not exist.
TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded)
You have exceeded the maximum number of tags for this DAX cluster.
Unhandled(Unhandled)
Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():
   err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
Source§impl Error for Error
 
impl Error for Error
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
Source§impl From<BuildError> for Error
 
impl From<BuildError> for Error
Source§fn from(value: BuildError) -> Self
 
fn from(value: BuildError) -> Self
Source§impl From<CreateClusterError> for Error
 
impl From<CreateClusterError> for Error
Source§fn from(err: CreateClusterError) -> Self
 
fn from(err: CreateClusterError) -> Self
Source§impl From<CreateParameterGroupError> for Error
 
impl From<CreateParameterGroupError> for Error
Source§fn from(err: CreateParameterGroupError) -> Self
 
fn from(err: CreateParameterGroupError) -> Self
Source§impl From<CreateSubnetGroupError> for Error
 
impl From<CreateSubnetGroupError> for Error
Source§fn from(err: CreateSubnetGroupError) -> Self
 
fn from(err: CreateSubnetGroupError) -> Self
Source§impl From<DecreaseReplicationFactorError> for Error
 
impl From<DecreaseReplicationFactorError> for Error
Source§fn from(err: DecreaseReplicationFactorError) -> Self
 
fn from(err: DecreaseReplicationFactorError) -> Self
Source§impl From<DeleteClusterError> for Error
 
impl From<DeleteClusterError> for Error
Source§fn from(err: DeleteClusterError) -> Self
 
fn from(err: DeleteClusterError) -> Self
Source§impl From<DeleteParameterGroupError> for Error
 
impl From<DeleteParameterGroupError> for Error
Source§fn from(err: DeleteParameterGroupError) -> Self
 
fn from(err: DeleteParameterGroupError) -> Self
Source§impl From<DeleteSubnetGroupError> for Error
 
impl From<DeleteSubnetGroupError> for Error
Source§fn from(err: DeleteSubnetGroupError) -> Self
 
fn from(err: DeleteSubnetGroupError) -> Self
Source§impl From<DescribeClustersError> for Error
 
impl From<DescribeClustersError> for Error
Source§fn from(err: DescribeClustersError) -> Self
 
fn from(err: DescribeClustersError) -> Self
Source§impl From<DescribeDefaultParametersError> for Error
 
impl From<DescribeDefaultParametersError> for Error
Source§fn from(err: DescribeDefaultParametersError) -> Self
 
fn from(err: DescribeDefaultParametersError) -> Self
Source§impl From<DescribeEventsError> for Error
 
impl From<DescribeEventsError> for Error
Source§fn from(err: DescribeEventsError) -> Self
 
fn from(err: DescribeEventsError) -> Self
Source§impl From<DescribeParameterGroupsError> for Error
 
impl From<DescribeParameterGroupsError> for Error
Source§fn from(err: DescribeParameterGroupsError) -> Self
 
fn from(err: DescribeParameterGroupsError) -> Self
Source§impl From<DescribeParametersError> for Error
 
impl From<DescribeParametersError> for Error
Source§fn from(err: DescribeParametersError) -> Self
 
fn from(err: DescribeParametersError) -> Self
Source§impl From<DescribeSubnetGroupsError> for Error
 
impl From<DescribeSubnetGroupsError> for Error
Source§fn from(err: DescribeSubnetGroupsError) -> Self
 
fn from(err: DescribeSubnetGroupsError) -> Self
Source§impl From<IncreaseReplicationFactorError> for Error
 
impl From<IncreaseReplicationFactorError> for Error
Source§fn from(err: IncreaseReplicationFactorError) -> Self
 
fn from(err: IncreaseReplicationFactorError) -> Self
Source§impl From<ListTagsError> for Error
 
impl From<ListTagsError> for Error
Source§fn from(err: ListTagsError) -> Self
 
fn from(err: ListTagsError) -> Self
Source§impl From<RebootNodeError> for Error
 
impl From<RebootNodeError> for Error
Source§fn from(err: RebootNodeError) -> Self
 
fn from(err: RebootNodeError) -> Self
Source§impl<R> From<SdkError<CreateClusterError, R>> for Error
 
impl<R> From<SdkError<CreateClusterError, R>> for Error
Source§fn from(err: SdkError<CreateClusterError, R>) -> Self
 
fn from(err: SdkError<CreateClusterError, R>) -> Self
Source§impl<R> From<SdkError<CreateParameterGroupError, R>> for Error
 
impl<R> From<SdkError<CreateParameterGroupError, R>> for Error
Source§fn from(err: SdkError<CreateParameterGroupError, R>) -> Self
 
fn from(err: SdkError<CreateParameterGroupError, R>) -> Self
Source§impl<R> From<SdkError<CreateSubnetGroupError, R>> for Error
 
impl<R> From<SdkError<CreateSubnetGroupError, R>> for Error
Source§fn from(err: SdkError<CreateSubnetGroupError, R>) -> Self
 
fn from(err: SdkError<CreateSubnetGroupError, R>) -> Self
Source§impl<R> From<SdkError<DecreaseReplicationFactorError, R>> for Error
 
impl<R> From<SdkError<DecreaseReplicationFactorError, R>> for Error
Source§fn from(err: SdkError<DecreaseReplicationFactorError, R>) -> Self
 
fn from(err: SdkError<DecreaseReplicationFactorError, R>) -> Self
Source§impl<R> From<SdkError<DeleteClusterError, R>> for Error
 
impl<R> From<SdkError<DeleteClusterError, R>> for Error
Source§fn from(err: SdkError<DeleteClusterError, R>) -> Self
 
fn from(err: SdkError<DeleteClusterError, R>) -> Self
Source§impl<R> From<SdkError<DeleteParameterGroupError, R>> for Error
 
impl<R> From<SdkError<DeleteParameterGroupError, R>> for Error
Source§fn from(err: SdkError<DeleteParameterGroupError, R>) -> Self
 
fn from(err: SdkError<DeleteParameterGroupError, R>) -> Self
Source§impl<R> From<SdkError<DeleteSubnetGroupError, R>> for Error
 
impl<R> From<SdkError<DeleteSubnetGroupError, R>> for Error
Source§fn from(err: SdkError<DeleteSubnetGroupError, R>) -> Self
 
fn from(err: SdkError<DeleteSubnetGroupError, R>) -> Self
Source§impl<R> From<SdkError<DescribeClustersError, R>> for Error
 
impl<R> From<SdkError<DescribeClustersError, R>> for Error
Source§fn from(err: SdkError<DescribeClustersError, R>) -> Self
 
fn from(err: SdkError<DescribeClustersError, R>) -> Self
Source§impl<R> From<SdkError<DescribeDefaultParametersError, R>> for Error
 
impl<R> From<SdkError<DescribeDefaultParametersError, R>> for Error
Source§fn from(err: SdkError<DescribeDefaultParametersError, R>) -> Self
 
fn from(err: SdkError<DescribeDefaultParametersError, R>) -> Self
Source§impl<R> From<SdkError<DescribeEventsError, R>> for Error
 
impl<R> From<SdkError<DescribeEventsError, R>> for Error
Source§fn from(err: SdkError<DescribeEventsError, R>) -> Self
 
fn from(err: SdkError<DescribeEventsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeParameterGroupsError, R>> for Error
 
impl<R> From<SdkError<DescribeParameterGroupsError, R>> for Error
Source§fn from(err: SdkError<DescribeParameterGroupsError, R>) -> Self
 
fn from(err: SdkError<DescribeParameterGroupsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeParametersError, R>> for Error
 
impl<R> From<SdkError<DescribeParametersError, R>> for Error
Source§fn from(err: SdkError<DescribeParametersError, R>) -> Self
 
fn from(err: SdkError<DescribeParametersError, R>) -> Self
Source§impl<R> From<SdkError<DescribeSubnetGroupsError, R>> for Error
 
impl<R> From<SdkError<DescribeSubnetGroupsError, R>> for Error
Source§fn from(err: SdkError<DescribeSubnetGroupsError, R>) -> Self
 
fn from(err: SdkError<DescribeSubnetGroupsError, R>) -> Self
Source§impl<R> From<SdkError<IncreaseReplicationFactorError, R>> for Error
 
impl<R> From<SdkError<IncreaseReplicationFactorError, R>> for Error
Source§fn from(err: SdkError<IncreaseReplicationFactorError, R>) -> Self
 
fn from(err: SdkError<IncreaseReplicationFactorError, R>) -> Self
Source§impl<R> From<SdkError<ListTagsError, R>> for Error
 
impl<R> From<SdkError<ListTagsError, R>> for Error
Source§fn from(err: SdkError<ListTagsError, R>) -> Self
 
fn from(err: SdkError<ListTagsError, R>) -> Self
Source§impl<R> From<SdkError<RebootNodeError, R>> for Error
 
impl<R> From<SdkError<RebootNodeError, R>> for Error
Source§fn from(err: SdkError<RebootNodeError, R>) -> Self
 
fn from(err: SdkError<RebootNodeError, R>) -> Self
Source§impl<R> From<SdkError<TagResourceError, R>> for Error
 
impl<R> From<SdkError<TagResourceError, R>> for Error
Source§fn from(err: SdkError<TagResourceError, R>) -> Self
 
fn from(err: SdkError<TagResourceError, R>) -> Self
Source§impl<R> From<SdkError<UntagResourceError, R>> for Error
 
impl<R> From<SdkError<UntagResourceError, R>> for Error
Source§fn from(err: SdkError<UntagResourceError, R>) -> Self
 
fn from(err: SdkError<UntagResourceError, R>) -> Self
Source§impl<R> From<SdkError<UpdateClusterError, R>> for Error
 
impl<R> From<SdkError<UpdateClusterError, R>> for Error
Source§fn from(err: SdkError<UpdateClusterError, R>) -> Self
 
fn from(err: SdkError<UpdateClusterError, R>) -> Self
Source§impl<R> From<SdkError<UpdateParameterGroupError, R>> for Error
 
impl<R> From<SdkError<UpdateParameterGroupError, R>> for Error
Source§fn from(err: SdkError<UpdateParameterGroupError, R>) -> Self
 
fn from(err: SdkError<UpdateParameterGroupError, R>) -> Self
Source§impl<R> From<SdkError<UpdateSubnetGroupError, R>> for Error
 
impl<R> From<SdkError<UpdateSubnetGroupError, R>> for Error
Source§fn from(err: SdkError<UpdateSubnetGroupError, R>) -> Self
 
fn from(err: SdkError<UpdateSubnetGroupError, R>) -> Self
Source§impl From<TagResourceError> for Error
 
impl From<TagResourceError> for Error
Source§fn from(err: TagResourceError) -> Self
 
fn from(err: TagResourceError) -> Self
Source§impl From<UntagResourceError> for Error
 
impl From<UntagResourceError> for Error
Source§fn from(err: UntagResourceError) -> Self
 
fn from(err: UntagResourceError) -> Self
Source§impl From<UpdateClusterError> for Error
 
impl From<UpdateClusterError> for Error
Source§fn from(err: UpdateClusterError) -> Self
 
fn from(err: UpdateClusterError) -> Self
Source§impl From<UpdateParameterGroupError> for Error
 
impl From<UpdateParameterGroupError> for Error
Source§fn from(err: UpdateParameterGroupError) -> Self
 
fn from(err: UpdateParameterGroupError) -> Self
Source§impl From<UpdateSubnetGroupError> for Error
 
impl From<UpdateSubnetGroupError> for Error
Source§fn from(err: UpdateSubnetGroupError) -> Self
 
fn from(err: UpdateSubnetGroupError) -> Self
Source§impl ProvideErrorMetadata for Error
 
impl ProvideErrorMetadata for Error
Source§fn meta(&self) -> &ErrorMetadata
 
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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> 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 moreSource§impl<T> Paint for Twhere
    T: ?Sized,
 
impl<T> Paint for Twhere
    T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
 
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
 
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
 
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
 
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
 
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
 
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
 
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
 
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
 
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
 
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
 
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
 
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
 
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
 
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
 
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
 
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
 
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
 
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
 
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
 
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
 
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
 
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
 
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
 👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
 
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);