#[non_exhaustive]pub enum Error {
Show 58 variants
AclAlreadyExistsFault(AclAlreadyExistsFault),
AclNotFoundFault(AclNotFoundFault),
AclQuotaExceededFault(AclQuotaExceededFault),
ApiCallRateForCustomerExceededFault(ApiCallRateForCustomerExceededFault),
ClusterAlreadyExistsFault(ClusterAlreadyExistsFault),
ClusterNotFoundFault(ClusterNotFoundFault),
ClusterQuotaForCustomerExceededFault(ClusterQuotaForCustomerExceededFault),
DefaultUserRequired(DefaultUserRequired),
DuplicateUserNameFault(DuplicateUserNameFault),
InsufficientClusterCapacityFault(InsufficientClusterCapacityFault),
InvalidAclStateFault(InvalidAclStateFault),
InvalidArnFault(InvalidArnFault),
InvalidClusterStateFault(InvalidClusterStateFault),
InvalidCredentialsException(InvalidCredentialsException),
InvalidKmsKeyFault(InvalidKmsKeyFault),
InvalidMultiRegionClusterStateFault(InvalidMultiRegionClusterStateFault),
InvalidNodeStateFault(InvalidNodeStateFault),
InvalidParameterCombinationException(InvalidParameterCombinationException),
InvalidParameterGroupStateFault(InvalidParameterGroupStateFault),
InvalidParameterValueException(InvalidParameterValueException),
InvalidSnapshotStateFault(InvalidSnapshotStateFault),
InvalidSubnet(InvalidSubnet),
InvalidUserStateFault(InvalidUserStateFault),
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault),
MultiRegionClusterAlreadyExistsFault(MultiRegionClusterAlreadyExistsFault),
MultiRegionClusterNotFoundFault(MultiRegionClusterNotFoundFault),
MultiRegionParameterGroupNotFoundFault(MultiRegionParameterGroupNotFoundFault),
NoOperationFault(NoOperationFault),
NodeQuotaForClusterExceededFault(NodeQuotaForClusterExceededFault),
NodeQuotaForCustomerExceededFault(NodeQuotaForCustomerExceededFault),
ParameterGroupAlreadyExistsFault(ParameterGroupAlreadyExistsFault),
ParameterGroupNotFoundFault(ParameterGroupNotFoundFault),
ParameterGroupQuotaExceededFault(ParameterGroupQuotaExceededFault),
ReservedNodeAlreadyExistsFault(ReservedNodeAlreadyExistsFault),
ReservedNodeNotFoundFault(ReservedNodeNotFoundFault),
ReservedNodeQuotaExceededFault(ReservedNodeQuotaExceededFault),
ReservedNodesOfferingNotFoundFault(ReservedNodesOfferingNotFoundFault),
ServiceLinkedRoleNotFoundFault(ServiceLinkedRoleNotFoundFault),
ServiceUpdateNotFoundFault(ServiceUpdateNotFoundFault),
ShardNotFoundFault(ShardNotFoundFault),
ShardsPerClusterQuotaExceededFault(ShardsPerClusterQuotaExceededFault),
SnapshotAlreadyExistsFault(SnapshotAlreadyExistsFault),
SnapshotNotFoundFault(SnapshotNotFoundFault),
SnapshotQuotaExceededFault(SnapshotQuotaExceededFault),
SubnetGroupAlreadyExistsFault(SubnetGroupAlreadyExistsFault),
SubnetGroupInUseFault(SubnetGroupInUseFault),
SubnetGroupNotFoundFault(SubnetGroupNotFoundFault),
SubnetGroupQuotaExceededFault(SubnetGroupQuotaExceededFault),
SubnetInUse(SubnetInUse),
SubnetNotAllowedFault(SubnetNotAllowedFault),
SubnetQuotaExceededFault(SubnetQuotaExceededFault),
TagNotFoundFault(TagNotFoundFault),
TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded),
TestFailoverNotAvailableFault(TestFailoverNotAvailableFault),
UserAlreadyExistsFault(UserAlreadyExistsFault),
UserNotFoundFault(UserNotFoundFault),
UserQuotaExceededFault(UserQuotaExceededFault),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AclAlreadyExistsFault(AclAlreadyExistsFault)
An ACL with the specified name already exists.
AclNotFoundFault(AclNotFoundFault)
The specified ACL does not exist.
AclQuotaExceededFault(AclQuotaExceededFault)
The request cannot be processed because it would exceed the maximum number of ACLs allowed.
ApiCallRateForCustomerExceededFault(ApiCallRateForCustomerExceededFault)
The customer has exceeded the maximum number of API requests allowed per time period.
ClusterAlreadyExistsFault(ClusterAlreadyExistsFault)
A cluster with the specified name already exists.
ClusterNotFoundFault(ClusterNotFoundFault)
The specified cluster does not exist.
ClusterQuotaForCustomerExceededFault(ClusterQuotaForCustomerExceededFault)
The request cannot be processed because it would exceed the maximum number of clusters allowed for this customer.
DefaultUserRequired(DefaultUserRequired)
A default user is required and must be specified.
DuplicateUserNameFault(DuplicateUserNameFault)
A user with the specified name already exists.
InsufficientClusterCapacityFault(InsufficientClusterCapacityFault)
The cluster does not have sufficient capacity to perform the requested operation.
InvalidAclStateFault(InvalidAclStateFault)
The ACL is not in a valid state for the requested operation.
InvalidArnFault(InvalidArnFault)
The specified Amazon Resource Name (ARN) is not valid.
InvalidClusterStateFault(InvalidClusterStateFault)
The cluster is not in a valid state for the requested operation.
InvalidCredentialsException(InvalidCredentialsException)
The provided credentials are not valid.
InvalidKmsKeyFault(InvalidKmsKeyFault)
The specified KMS key is not valid or accessible.
InvalidMultiRegionClusterStateFault(InvalidMultiRegionClusterStateFault)
The requested operation cannot be performed on the multi-Region cluster in its current state.
InvalidNodeStateFault(InvalidNodeStateFault)
The node is not in a valid state for the requested operation.
InvalidParameterCombinationException(InvalidParameterCombinationException)
The specified parameter combination is not valid.
InvalidParameterGroupStateFault(InvalidParameterGroupStateFault)
The parameter group is not in a valid state for the requested operation.
InvalidParameterValueException(InvalidParameterValueException)
The specified parameter value is not valid.
InvalidSnapshotStateFault(InvalidSnapshotStateFault)
The snapshot is not in a valid state for the requested operation.
InvalidSubnet(InvalidSubnet)
The specified subnet is not valid.
InvalidUserStateFault(InvalidUserStateFault)
The user is not in a valid state for the requested operation.
InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault)
The VPC network is not in a valid state for the requested operation.
MultiRegionClusterAlreadyExistsFault(MultiRegionClusterAlreadyExistsFault)
A multi-Region cluster with the specified name already exists.
MultiRegionClusterNotFoundFault(MultiRegionClusterNotFoundFault)
The specified multi-Region cluster does not exist.
MultiRegionParameterGroupNotFoundFault(MultiRegionParameterGroupNotFoundFault)
The specified multi-Region parameter group does not exist.
NoOperationFault(NoOperationFault)
The requested operation would result in no changes.
NodeQuotaForClusterExceededFault(NodeQuotaForClusterExceededFault)
The request cannot be processed because it would exceed the maximum number of nodes allowed for this cluster.
NodeQuotaForCustomerExceededFault(NodeQuotaForCustomerExceededFault)
The request cannot be processed because it would exceed the maximum number of nodes allowed for this customer.
ParameterGroupAlreadyExistsFault(ParameterGroupAlreadyExistsFault)
A parameter group with the specified name already exists.
ParameterGroupNotFoundFault(ParameterGroupNotFoundFault)
The specified parameter group does not exist.
ParameterGroupQuotaExceededFault(ParameterGroupQuotaExceededFault)
The request cannot be processed because it would exceed the maximum number of parameter groups allowed.
ReservedNodeAlreadyExistsFault(ReservedNodeAlreadyExistsFault)
You already have a reservation with the given identifier.
ReservedNodeNotFoundFault(ReservedNodeNotFoundFault)
The requested node does not exist.
ReservedNodeQuotaExceededFault(ReservedNodeQuotaExceededFault)
The request cannot be processed because it would exceed the user's node quota.
ReservedNodesOfferingNotFoundFault(ReservedNodesOfferingNotFoundFault)
The requested node offering does not exist.
ServiceLinkedRoleNotFoundFault(ServiceLinkedRoleNotFoundFault)
The required service-linked role was not found.
ServiceUpdateNotFoundFault(ServiceUpdateNotFoundFault)
The specified service update does not exist.
ShardNotFoundFault(ShardNotFoundFault)
The specified shard does not exist.
ShardsPerClusterQuotaExceededFault(ShardsPerClusterQuotaExceededFault)
The request cannot be processed because it would exceed the maximum number of shards allowed per cluster.
SnapshotAlreadyExistsFault(SnapshotAlreadyExistsFault)
A snapshot with the specified name already exists.
SnapshotNotFoundFault(SnapshotNotFoundFault)
The specified snapshot does not exist.
SnapshotQuotaExceededFault(SnapshotQuotaExceededFault)
The request cannot be processed because it would exceed the maximum number of snapshots allowed.
SubnetGroupAlreadyExistsFault(SubnetGroupAlreadyExistsFault)
A subnet group with the specified name already exists.
SubnetGroupInUseFault(SubnetGroupInUseFault)
The subnet group is currently in use and cannot be deleted.
SubnetGroupNotFoundFault(SubnetGroupNotFoundFault)
The specified subnet group does not exist.
SubnetGroupQuotaExceededFault(SubnetGroupQuotaExceededFault)
The request cannot be processed because it would exceed the maximum number of subnet groups allowed.
SubnetInUse(SubnetInUse)
The subnet is currently in use and cannot be deleted.
SubnetNotAllowedFault(SubnetNotAllowedFault)
The specified subnet is not allowed for this operation.
SubnetQuotaExceededFault(SubnetQuotaExceededFault)
The request cannot be processed because it would exceed the maximum number of subnets allowed.
TagNotFoundFault(TagNotFoundFault)
The specified tag does not exist.
TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded)
The request cannot be processed because it would exceed the maximum number of tags allowed per resource.
TestFailoverNotAvailableFault(TestFailoverNotAvailableFault)
Test failover is not available for this cluster configuration.
UserAlreadyExistsFault(UserAlreadyExistsFault)
A user with the specified name already exists.
UserNotFoundFault(UserNotFoundFault)
The specified user does not exist.
UserQuotaExceededFault(UserQuotaExceededFault)
The request cannot be processed because it would exceed the maximum number of users allowed.
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<BatchUpdateClusterError> for Error
impl From<BatchUpdateClusterError> for Error
Source§fn from(err: BatchUpdateClusterError) -> Self
fn from(err: BatchUpdateClusterError) -> Self
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<CopySnapshotError> for Error
impl From<CopySnapshotError> for Error
Source§fn from(err: CopySnapshotError) -> Self
fn from(err: CopySnapshotError) -> Self
Source§impl From<CreateACLError> for Error
impl From<CreateACLError> for Error
Source§fn from(err: CreateACLError) -> Self
fn from(err: CreateACLError) -> 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<CreateMultiRegionClusterError> for Error
impl From<CreateMultiRegionClusterError> for Error
Source§fn from(err: CreateMultiRegionClusterError) -> Self
fn from(err: CreateMultiRegionClusterError) -> 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<CreateSnapshotError> for Error
impl From<CreateSnapshotError> for Error
Source§fn from(err: CreateSnapshotError) -> Self
fn from(err: CreateSnapshotError) -> 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<CreateUserError> for Error
impl From<CreateUserError> for Error
Source§fn from(err: CreateUserError) -> Self
fn from(err: CreateUserError) -> Self
Source§impl From<DeleteACLError> for Error
impl From<DeleteACLError> for Error
Source§fn from(err: DeleteACLError) -> Self
fn from(err: DeleteACLError) -> 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<DeleteMultiRegionClusterError> for Error
impl From<DeleteMultiRegionClusterError> for Error
Source§fn from(err: DeleteMultiRegionClusterError) -> Self
fn from(err: DeleteMultiRegionClusterError) -> 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<DeleteSnapshotError> for Error
impl From<DeleteSnapshotError> for Error
Source§fn from(err: DeleteSnapshotError) -> Self
fn from(err: DeleteSnapshotError) -> 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<DeleteUserError> for Error
impl From<DeleteUserError> for Error
Source§fn from(err: DeleteUserError) -> Self
fn from(err: DeleteUserError) -> Self
Source§impl From<DescribeACLsError> for Error
impl From<DescribeACLsError> for Error
Source§fn from(err: DescribeACLsError) -> Self
fn from(err: DescribeACLsError) -> 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<DescribeEngineVersionsError> for Error
impl From<DescribeEngineVersionsError> for Error
Source§fn from(err: DescribeEngineVersionsError) -> Self
fn from(err: DescribeEngineVersionsError) -> 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<DescribeMultiRegionClustersError> for Error
impl From<DescribeMultiRegionClustersError> for Error
Source§fn from(err: DescribeMultiRegionClustersError) -> Self
fn from(err: DescribeMultiRegionClustersError) -> Self
Source§impl From<DescribeMultiRegionParameterGroupsError> for Error
impl From<DescribeMultiRegionParameterGroupsError> for Error
Source§fn from(err: DescribeMultiRegionParameterGroupsError) -> Self
fn from(err: DescribeMultiRegionParameterGroupsError) -> Self
Source§impl From<DescribeMultiRegionParametersError> for Error
impl From<DescribeMultiRegionParametersError> for Error
Source§fn from(err: DescribeMultiRegionParametersError) -> Self
fn from(err: DescribeMultiRegionParametersError) -> 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<DescribeReservedNodesError> for Error
impl From<DescribeReservedNodesError> for Error
Source§fn from(err: DescribeReservedNodesError) -> Self
fn from(err: DescribeReservedNodesError) -> Self
Source§impl From<DescribeReservedNodesOfferingsError> for Error
impl From<DescribeReservedNodesOfferingsError> for Error
Source§fn from(err: DescribeReservedNodesOfferingsError) -> Self
fn from(err: DescribeReservedNodesOfferingsError) -> Self
Source§impl From<DescribeServiceUpdatesError> for Error
impl From<DescribeServiceUpdatesError> for Error
Source§fn from(err: DescribeServiceUpdatesError) -> Self
fn from(err: DescribeServiceUpdatesError) -> Self
Source§impl From<DescribeSnapshotsError> for Error
impl From<DescribeSnapshotsError> for Error
Source§fn from(err: DescribeSnapshotsError) -> Self
fn from(err: DescribeSnapshotsError) -> 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<DescribeUsersError> for Error
impl From<DescribeUsersError> for Error
Source§fn from(err: DescribeUsersError) -> Self
fn from(err: DescribeUsersError) -> Self
Source§impl From<FailoverShardError> for Error
impl From<FailoverShardError> for Error
Source§fn from(err: FailoverShardError) -> Self
fn from(err: FailoverShardError) -> Self
Source§impl From<ListAllowedMultiRegionClusterUpdatesError> for Error
impl From<ListAllowedMultiRegionClusterUpdatesError> for Error
Source§fn from(err: ListAllowedMultiRegionClusterUpdatesError) -> Self
fn from(err: ListAllowedMultiRegionClusterUpdatesError) -> Self
Source§impl From<ListAllowedNodeTypeUpdatesError> for Error
impl From<ListAllowedNodeTypeUpdatesError> for Error
Source§fn from(err: ListAllowedNodeTypeUpdatesError) -> Self
fn from(err: ListAllowedNodeTypeUpdatesError) -> 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<PurchaseReservedNodesOfferingError> for Error
impl From<PurchaseReservedNodesOfferingError> for Error
Source§fn from(err: PurchaseReservedNodesOfferingError) -> Self
fn from(err: PurchaseReservedNodesOfferingError) -> Self
Source§impl From<ResetParameterGroupError> for Error
impl From<ResetParameterGroupError> for Error
Source§fn from(err: ResetParameterGroupError) -> Self
fn from(err: ResetParameterGroupError) -> Self
Source§impl<R> From<SdkError<BatchUpdateClusterError, R>> for Error
impl<R> From<SdkError<BatchUpdateClusterError, R>> for Error
Source§fn from(err: SdkError<BatchUpdateClusterError, R>) -> Self
fn from(err: SdkError<BatchUpdateClusterError, R>) -> Self
Source§impl<R> From<SdkError<CopySnapshotError, R>> for Error
impl<R> From<SdkError<CopySnapshotError, R>> for Error
Source§fn from(err: SdkError<CopySnapshotError, R>) -> Self
fn from(err: SdkError<CopySnapshotError, R>) -> Self
Source§impl<R> From<SdkError<CreateACLError, R>> for Error
impl<R> From<SdkError<CreateACLError, R>> for Error
Source§fn from(err: SdkError<CreateACLError, R>) -> Self
fn from(err: SdkError<CreateACLError, R>) -> 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<CreateMultiRegionClusterError, R>> for Error
impl<R> From<SdkError<CreateMultiRegionClusterError, R>> for Error
Source§fn from(err: SdkError<CreateMultiRegionClusterError, R>) -> Self
fn from(err: SdkError<CreateMultiRegionClusterError, 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<CreateSnapshotError, R>> for Error
impl<R> From<SdkError<CreateSnapshotError, R>> for Error
Source§fn from(err: SdkError<CreateSnapshotError, R>) -> Self
fn from(err: SdkError<CreateSnapshotError, 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<CreateUserError, R>> for Error
impl<R> From<SdkError<CreateUserError, R>> for Error
Source§fn from(err: SdkError<CreateUserError, R>) -> Self
fn from(err: SdkError<CreateUserError, R>) -> Self
Source§impl<R> From<SdkError<DeleteACLError, R>> for Error
impl<R> From<SdkError<DeleteACLError, R>> for Error
Source§fn from(err: SdkError<DeleteACLError, R>) -> Self
fn from(err: SdkError<DeleteACLError, 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<DeleteMultiRegionClusterError, R>> for Error
impl<R> From<SdkError<DeleteMultiRegionClusterError, R>> for Error
Source§fn from(err: SdkError<DeleteMultiRegionClusterError, R>) -> Self
fn from(err: SdkError<DeleteMultiRegionClusterError, 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<DeleteSnapshotError, R>> for Error
impl<R> From<SdkError<DeleteSnapshotError, R>> for Error
Source§fn from(err: SdkError<DeleteSnapshotError, R>) -> Self
fn from(err: SdkError<DeleteSnapshotError, 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<DeleteUserError, R>> for Error
impl<R> From<SdkError<DeleteUserError, R>> for Error
Source§fn from(err: SdkError<DeleteUserError, R>) -> Self
fn from(err: SdkError<DeleteUserError, R>) -> Self
Source§impl<R> From<SdkError<DescribeACLsError, R>> for Error
impl<R> From<SdkError<DescribeACLsError, R>> for Error
Source§fn from(err: SdkError<DescribeACLsError, R>) -> Self
fn from(err: SdkError<DescribeACLsError, 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<DescribeEngineVersionsError, R>> for Error
impl<R> From<SdkError<DescribeEngineVersionsError, R>> for Error
Source§fn from(err: SdkError<DescribeEngineVersionsError, R>) -> Self
fn from(err: SdkError<DescribeEngineVersionsError, 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<DescribeMultiRegionClustersError, R>> for Error
impl<R> From<SdkError<DescribeMultiRegionClustersError, R>> for Error
Source§fn from(err: SdkError<DescribeMultiRegionClustersError, R>) -> Self
fn from(err: SdkError<DescribeMultiRegionClustersError, R>) -> Self
Source§impl<R> From<SdkError<DescribeMultiRegionParameterGroupsError, R>> for Error
impl<R> From<SdkError<DescribeMultiRegionParameterGroupsError, R>> for Error
Source§fn from(err: SdkError<DescribeMultiRegionParameterGroupsError, R>) -> Self
fn from(err: SdkError<DescribeMultiRegionParameterGroupsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeMultiRegionParametersError, R>> for Error
impl<R> From<SdkError<DescribeMultiRegionParametersError, R>> for Error
Source§fn from(err: SdkError<DescribeMultiRegionParametersError, R>) -> Self
fn from(err: SdkError<DescribeMultiRegionParametersError, 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<DescribeReservedNodesError, R>> for Error
impl<R> From<SdkError<DescribeReservedNodesError, R>> for Error
Source§fn from(err: SdkError<DescribeReservedNodesError, R>) -> Self
fn from(err: SdkError<DescribeReservedNodesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeReservedNodesOfferingsError, R>> for Error
impl<R> From<SdkError<DescribeReservedNodesOfferingsError, R>> for Error
Source§fn from(err: SdkError<DescribeReservedNodesOfferingsError, R>) -> Self
fn from(err: SdkError<DescribeReservedNodesOfferingsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeServiceUpdatesError, R>> for Error
impl<R> From<SdkError<DescribeServiceUpdatesError, R>> for Error
Source§fn from(err: SdkError<DescribeServiceUpdatesError, R>) -> Self
fn from(err: SdkError<DescribeServiceUpdatesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeSnapshotsError, R>> for Error
impl<R> From<SdkError<DescribeSnapshotsError, R>> for Error
Source§fn from(err: SdkError<DescribeSnapshotsError, R>) -> Self
fn from(err: SdkError<DescribeSnapshotsError, 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<DescribeUsersError, R>> for Error
impl<R> From<SdkError<DescribeUsersError, R>> for Error
Source§fn from(err: SdkError<DescribeUsersError, R>) -> Self
fn from(err: SdkError<DescribeUsersError, R>) -> Self
Source§impl<R> From<SdkError<FailoverShardError, R>> for Error
impl<R> From<SdkError<FailoverShardError, R>> for Error
Source§fn from(err: SdkError<FailoverShardError, R>) -> Self
fn from(err: SdkError<FailoverShardError, R>) -> Self
Source§impl<R> From<SdkError<ListAllowedMultiRegionClusterUpdatesError, R>> for Error
impl<R> From<SdkError<ListAllowedMultiRegionClusterUpdatesError, R>> for Error
Source§fn from(err: SdkError<ListAllowedMultiRegionClusterUpdatesError, R>) -> Self
fn from(err: SdkError<ListAllowedMultiRegionClusterUpdatesError, R>) -> Self
Source§impl<R> From<SdkError<ListAllowedNodeTypeUpdatesError, R>> for Error
impl<R> From<SdkError<ListAllowedNodeTypeUpdatesError, R>> for Error
Source§fn from(err: SdkError<ListAllowedNodeTypeUpdatesError, R>) -> Self
fn from(err: SdkError<ListAllowedNodeTypeUpdatesError, 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<PurchaseReservedNodesOfferingError, R>> for Error
impl<R> From<SdkError<PurchaseReservedNodesOfferingError, R>> for Error
Source§fn from(err: SdkError<PurchaseReservedNodesOfferingError, R>) -> Self
fn from(err: SdkError<PurchaseReservedNodesOfferingError, R>) -> Self
Source§impl<R> From<SdkError<ResetParameterGroupError, R>> for Error
impl<R> From<SdkError<ResetParameterGroupError, R>> for Error
Source§fn from(err: SdkError<ResetParameterGroupError, R>) -> Self
fn from(err: SdkError<ResetParameterGroupError, 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<UpdateACLError, R>> for Error
impl<R> From<SdkError<UpdateACLError, R>> for Error
Source§fn from(err: SdkError<UpdateACLError, R>) -> Self
fn from(err: SdkError<UpdateACLError, 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<UpdateMultiRegionClusterError, R>> for Error
impl<R> From<SdkError<UpdateMultiRegionClusterError, R>> for Error
Source§fn from(err: SdkError<UpdateMultiRegionClusterError, R>) -> Self
fn from(err: SdkError<UpdateMultiRegionClusterError, 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<R> From<SdkError<UpdateUserError, R>> for Error
impl<R> From<SdkError<UpdateUserError, R>> for Error
Source§fn from(err: SdkError<UpdateUserError, R>) -> Self
fn from(err: SdkError<UpdateUserError, 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<UpdateACLError> for Error
impl From<UpdateACLError> for Error
Source§fn from(err: UpdateACLError) -> Self
fn from(err: UpdateACLError) -> 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<UpdateMultiRegionClusterError> for Error
impl From<UpdateMultiRegionClusterError> for Error
Source§fn from(err: UpdateMultiRegionClusterError) -> Self
fn from(err: UpdateMultiRegionClusterError) -> 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 From<UpdateUserError> for Error
impl From<UpdateUserError> for Error
Source§fn from(err: UpdateUserError) -> Self
fn from(err: UpdateUserError) -> 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);