#[non_exhaustive]pub enum Error {
Show 16 variants
AccessDeniedException(AccessDeniedException),
BadRequestException(BadRequestException),
ClientException(ClientException),
InvalidParameterException(InvalidParameterException),
InvalidRequestException(InvalidRequestException),
InvalidStateException(InvalidStateException),
NotFoundException(NotFoundException),
ResourceInUseException(ResourceInUseException),
ResourceLimitExceededException(ResourceLimitExceededException),
ResourceNotFoundException(ResourceNotFoundException),
ResourcePropagationDelayException(ResourcePropagationDelayException),
ServerException(ServerException),
ServiceUnavailableException(ServiceUnavailableException),
ThrottlingException(ThrottlingException),
UnsupportedAvailabilityZoneException(UnsupportedAvailabilityZoneException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You don't have permissions to perform the requested operation. The IAM principal making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access management in the IAM User Guide.
BadRequestException(BadRequestException)
This exception is thrown if the request contains a semantic error. The precise meaning will depend on the API, and will be documented in the error message.
ClientException(ClientException)
These errors are usually caused by a client action. Actions can include using an action or resource on behalf of an IAM principal that doesn't have permissions to use the action or resource or specifying an identifier that is not valid.
InvalidParameterException(InvalidParameterException)
The specified parameter is invalid. Review the available parameters for the API request.
InvalidRequestException(InvalidRequestException)
The request is invalid given the state of the cluster. Check the state of the cluster and the associated operations.
InvalidStateException(InvalidStateException)
Amazon EKS detected upgrade readiness issues. Call the ListInsights
API to view detected upgrade blocking issues. Pass the force
flag when updating to override upgrade readiness errors.
NotFoundException(NotFoundException)
A service resource associated with the request could not be found. Clients should not retry such requests.
ResourceInUseException(ResourceInUseException)
The specified resource is in use.
ResourceLimitExceededException(ResourceLimitExceededException)
You have encountered a service limit on the specified resource.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource could not be found. You can view your available clusters with ListClusters
. You can view your available managed node groups with ListNodegroups
. Amazon EKS clusters and node groups are Amazon Web Services Region specific.
ResourcePropagationDelayException(ResourcePropagationDelayException)
Required resources (such as service-linked roles) were created and are still propagating. Retry later.
ServerException(ServerException)
These errors are usually caused by a server-side issue.
The service is unavailable. Back off and retry the operation.
ThrottlingException(ThrottlingException)
The request or operation couldn't be performed because a service is throttling requests.
UnsupportedAvailabilityZoneException(UnsupportedAvailabilityZoneException)
At least one of your specified cluster subnets is in an Availability Zone that does not support Amazon EKS. The exception output specifies the supported Availability Zones for your account, from which you can choose subnets for your 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<AssociateAccessPolicyError> for Error
impl From<AssociateAccessPolicyError> for Error
Source§fn from(err: AssociateAccessPolicyError) -> Self
fn from(err: AssociateAccessPolicyError) -> Self
Source§impl From<AssociateEncryptionConfigError> for Error
impl From<AssociateEncryptionConfigError> for Error
Source§fn from(err: AssociateEncryptionConfigError) -> Self
fn from(err: AssociateEncryptionConfigError) -> Self
Source§impl From<AssociateIdentityProviderConfigError> for Error
impl From<AssociateIdentityProviderConfigError> for Error
Source§fn from(err: AssociateIdentityProviderConfigError) -> Self
fn from(err: AssociateIdentityProviderConfigError) -> 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<CreateAccessEntryError> for Error
impl From<CreateAccessEntryError> for Error
Source§fn from(err: CreateAccessEntryError) -> Self
fn from(err: CreateAccessEntryError) -> Self
Source§impl From<CreateAddonError> for Error
impl From<CreateAddonError> for Error
Source§fn from(err: CreateAddonError) -> Self
fn from(err: CreateAddonError) -> 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<CreateEksAnywhereSubscriptionError> for Error
impl From<CreateEksAnywhereSubscriptionError> for Error
Source§fn from(err: CreateEksAnywhereSubscriptionError) -> Self
fn from(err: CreateEksAnywhereSubscriptionError) -> Self
Source§impl From<CreateFargateProfileError> for Error
impl From<CreateFargateProfileError> for Error
Source§fn from(err: CreateFargateProfileError) -> Self
fn from(err: CreateFargateProfileError) -> Self
Source§impl From<CreateNodegroupError> for Error
impl From<CreateNodegroupError> for Error
Source§fn from(err: CreateNodegroupError) -> Self
fn from(err: CreateNodegroupError) -> Self
Source§impl From<CreatePodIdentityAssociationError> for Error
impl From<CreatePodIdentityAssociationError> for Error
Source§fn from(err: CreatePodIdentityAssociationError) -> Self
fn from(err: CreatePodIdentityAssociationError) -> Self
Source§impl From<DeleteAccessEntryError> for Error
impl From<DeleteAccessEntryError> for Error
Source§fn from(err: DeleteAccessEntryError) -> Self
fn from(err: DeleteAccessEntryError) -> Self
Source§impl From<DeleteAddonError> for Error
impl From<DeleteAddonError> for Error
Source§fn from(err: DeleteAddonError) -> Self
fn from(err: DeleteAddonError) -> 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<DeleteEksAnywhereSubscriptionError> for Error
impl From<DeleteEksAnywhereSubscriptionError> for Error
Source§fn from(err: DeleteEksAnywhereSubscriptionError) -> Self
fn from(err: DeleteEksAnywhereSubscriptionError) -> Self
Source§impl From<DeleteFargateProfileError> for Error
impl From<DeleteFargateProfileError> for Error
Source§fn from(err: DeleteFargateProfileError) -> Self
fn from(err: DeleteFargateProfileError) -> Self
Source§impl From<DeleteNodegroupError> for Error
impl From<DeleteNodegroupError> for Error
Source§fn from(err: DeleteNodegroupError) -> Self
fn from(err: DeleteNodegroupError) -> Self
Source§impl From<DeletePodIdentityAssociationError> for Error
impl From<DeletePodIdentityAssociationError> for Error
Source§fn from(err: DeletePodIdentityAssociationError) -> Self
fn from(err: DeletePodIdentityAssociationError) -> Self
Source§impl From<DeregisterClusterError> for Error
impl From<DeregisterClusterError> for Error
Source§fn from(err: DeregisterClusterError) -> Self
fn from(err: DeregisterClusterError) -> Self
Source§impl From<DescribeAccessEntryError> for Error
impl From<DescribeAccessEntryError> for Error
Source§fn from(err: DescribeAccessEntryError) -> Self
fn from(err: DescribeAccessEntryError) -> Self
Source§impl From<DescribeAddonConfigurationError> for Error
impl From<DescribeAddonConfigurationError> for Error
Source§fn from(err: DescribeAddonConfigurationError) -> Self
fn from(err: DescribeAddonConfigurationError) -> Self
Source§impl From<DescribeAddonError> for Error
impl From<DescribeAddonError> for Error
Source§fn from(err: DescribeAddonError) -> Self
fn from(err: DescribeAddonError) -> Self
Source§impl From<DescribeAddonVersionsError> for Error
impl From<DescribeAddonVersionsError> for Error
Source§fn from(err: DescribeAddonVersionsError) -> Self
fn from(err: DescribeAddonVersionsError) -> Self
Source§impl From<DescribeClusterError> for Error
impl From<DescribeClusterError> for Error
Source§fn from(err: DescribeClusterError) -> Self
fn from(err: DescribeClusterError) -> Self
Source§impl From<DescribeClusterVersionsError> for Error
impl From<DescribeClusterVersionsError> for Error
Source§fn from(err: DescribeClusterVersionsError) -> Self
fn from(err: DescribeClusterVersionsError) -> Self
Source§impl From<DescribeEksAnywhereSubscriptionError> for Error
impl From<DescribeEksAnywhereSubscriptionError> for Error
Source§fn from(err: DescribeEksAnywhereSubscriptionError) -> Self
fn from(err: DescribeEksAnywhereSubscriptionError) -> Self
Source§impl From<DescribeFargateProfileError> for Error
impl From<DescribeFargateProfileError> for Error
Source§fn from(err: DescribeFargateProfileError) -> Self
fn from(err: DescribeFargateProfileError) -> Self
Source§impl From<DescribeIdentityProviderConfigError> for Error
impl From<DescribeIdentityProviderConfigError> for Error
Source§fn from(err: DescribeIdentityProviderConfigError) -> Self
fn from(err: DescribeIdentityProviderConfigError) -> Self
Source§impl From<DescribeInsightError> for Error
impl From<DescribeInsightError> for Error
Source§fn from(err: DescribeInsightError) -> Self
fn from(err: DescribeInsightError) -> Self
Source§impl From<DescribeNodegroupError> for Error
impl From<DescribeNodegroupError> for Error
Source§fn from(err: DescribeNodegroupError) -> Self
fn from(err: DescribeNodegroupError) -> Self
Source§impl From<DescribePodIdentityAssociationError> for Error
impl From<DescribePodIdentityAssociationError> for Error
Source§fn from(err: DescribePodIdentityAssociationError) -> Self
fn from(err: DescribePodIdentityAssociationError) -> Self
Source§impl From<DescribeUpdateError> for Error
impl From<DescribeUpdateError> for Error
Source§fn from(err: DescribeUpdateError) -> Self
fn from(err: DescribeUpdateError) -> Self
Source§impl From<DisassociateAccessPolicyError> for Error
impl From<DisassociateAccessPolicyError> for Error
Source§fn from(err: DisassociateAccessPolicyError) -> Self
fn from(err: DisassociateAccessPolicyError) -> Self
Source§impl From<DisassociateIdentityProviderConfigError> for Error
impl From<DisassociateIdentityProviderConfigError> for Error
Source§fn from(err: DisassociateIdentityProviderConfigError) -> Self
fn from(err: DisassociateIdentityProviderConfigError) -> Self
Source§impl From<ListAccessEntriesError> for Error
impl From<ListAccessEntriesError> for Error
Source§fn from(err: ListAccessEntriesError) -> Self
fn from(err: ListAccessEntriesError) -> Self
Source§impl From<ListAccessPoliciesError> for Error
impl From<ListAccessPoliciesError> for Error
Source§fn from(err: ListAccessPoliciesError) -> Self
fn from(err: ListAccessPoliciesError) -> Self
Source§impl From<ListAddonsError> for Error
impl From<ListAddonsError> for Error
Source§fn from(err: ListAddonsError) -> Self
fn from(err: ListAddonsError) -> Self
Source§impl From<ListAssociatedAccessPoliciesError> for Error
impl From<ListAssociatedAccessPoliciesError> for Error
Source§fn from(err: ListAssociatedAccessPoliciesError) -> Self
fn from(err: ListAssociatedAccessPoliciesError) -> Self
Source§impl From<ListClustersError> for Error
impl From<ListClustersError> for Error
Source§fn from(err: ListClustersError) -> Self
fn from(err: ListClustersError) -> Self
Source§impl From<ListEksAnywhereSubscriptionsError> for Error
impl From<ListEksAnywhereSubscriptionsError> for Error
Source§fn from(err: ListEksAnywhereSubscriptionsError) -> Self
fn from(err: ListEksAnywhereSubscriptionsError) -> Self
Source§impl From<ListFargateProfilesError> for Error
impl From<ListFargateProfilesError> for Error
Source§fn from(err: ListFargateProfilesError) -> Self
fn from(err: ListFargateProfilesError) -> Self
Source§impl From<ListIdentityProviderConfigsError> for Error
impl From<ListIdentityProviderConfigsError> for Error
Source§fn from(err: ListIdentityProviderConfigsError) -> Self
fn from(err: ListIdentityProviderConfigsError) -> Self
Source§impl From<ListInsightsError> for Error
impl From<ListInsightsError> for Error
Source§fn from(err: ListInsightsError) -> Self
fn from(err: ListInsightsError) -> Self
Source§impl From<ListNodegroupsError> for Error
impl From<ListNodegroupsError> for Error
Source§fn from(err: ListNodegroupsError) -> Self
fn from(err: ListNodegroupsError) -> Self
Source§impl From<ListPodIdentityAssociationsError> for Error
impl From<ListPodIdentityAssociationsError> for Error
Source§fn from(err: ListPodIdentityAssociationsError) -> Self
fn from(err: ListPodIdentityAssociationsError) -> Self
Source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
Source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
Source§impl From<ListUpdatesError> for Error
impl From<ListUpdatesError> for Error
Source§fn from(err: ListUpdatesError) -> Self
fn from(err: ListUpdatesError) -> Self
Source§impl From<RegisterClusterError> for Error
impl From<RegisterClusterError> for Error
Source§fn from(err: RegisterClusterError) -> Self
fn from(err: RegisterClusterError) -> Self
Source§impl<R> From<SdkError<AssociateAccessPolicyError, R>> for Error
impl<R> From<SdkError<AssociateAccessPolicyError, R>> for Error
Source§fn from(err: SdkError<AssociateAccessPolicyError, R>) -> Self
fn from(err: SdkError<AssociateAccessPolicyError, R>) -> Self
Source§impl<R> From<SdkError<AssociateEncryptionConfigError, R>> for Error
impl<R> From<SdkError<AssociateEncryptionConfigError, R>> for Error
Source§fn from(err: SdkError<AssociateEncryptionConfigError, R>) -> Self
fn from(err: SdkError<AssociateEncryptionConfigError, R>) -> Self
Source§impl<R> From<SdkError<AssociateIdentityProviderConfigError, R>> for Error
impl<R> From<SdkError<AssociateIdentityProviderConfigError, R>> for Error
Source§fn from(err: SdkError<AssociateIdentityProviderConfigError, R>) -> Self
fn from(err: SdkError<AssociateIdentityProviderConfigError, R>) -> Self
Source§impl<R> From<SdkError<CreateAccessEntryError, R>> for Error
impl<R> From<SdkError<CreateAccessEntryError, R>> for Error
Source§fn from(err: SdkError<CreateAccessEntryError, R>) -> Self
fn from(err: SdkError<CreateAccessEntryError, R>) -> Self
Source§impl<R> From<SdkError<CreateAddonError, R>> for Error
impl<R> From<SdkError<CreateAddonError, R>> for Error
Source§fn from(err: SdkError<CreateAddonError, R>) -> Self
fn from(err: SdkError<CreateAddonError, 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<CreateEksAnywhereSubscriptionError, R>> for Error
impl<R> From<SdkError<CreateEksAnywhereSubscriptionError, R>> for Error
Source§fn from(err: SdkError<CreateEksAnywhereSubscriptionError, R>) -> Self
fn from(err: SdkError<CreateEksAnywhereSubscriptionError, R>) -> Self
Source§impl<R> From<SdkError<CreateFargateProfileError, R>> for Error
impl<R> From<SdkError<CreateFargateProfileError, R>> for Error
Source§fn from(err: SdkError<CreateFargateProfileError, R>) -> Self
fn from(err: SdkError<CreateFargateProfileError, R>) -> Self
Source§impl<R> From<SdkError<CreateNodegroupError, R>> for Error
impl<R> From<SdkError<CreateNodegroupError, R>> for Error
Source§fn from(err: SdkError<CreateNodegroupError, R>) -> Self
fn from(err: SdkError<CreateNodegroupError, R>) -> Self
Source§impl<R> From<SdkError<CreatePodIdentityAssociationError, R>> for Error
impl<R> From<SdkError<CreatePodIdentityAssociationError, R>> for Error
Source§fn from(err: SdkError<CreatePodIdentityAssociationError, R>) -> Self
fn from(err: SdkError<CreatePodIdentityAssociationError, R>) -> Self
Source§impl<R> From<SdkError<DeleteAccessEntryError, R>> for Error
impl<R> From<SdkError<DeleteAccessEntryError, R>> for Error
Source§fn from(err: SdkError<DeleteAccessEntryError, R>) -> Self
fn from(err: SdkError<DeleteAccessEntryError, R>) -> Self
Source§impl<R> From<SdkError<DeleteAddonError, R>> for Error
impl<R> From<SdkError<DeleteAddonError, R>> for Error
Source§fn from(err: SdkError<DeleteAddonError, R>) -> Self
fn from(err: SdkError<DeleteAddonError, 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<DeleteEksAnywhereSubscriptionError, R>> for Error
impl<R> From<SdkError<DeleteEksAnywhereSubscriptionError, R>> for Error
Source§fn from(err: SdkError<DeleteEksAnywhereSubscriptionError, R>) -> Self
fn from(err: SdkError<DeleteEksAnywhereSubscriptionError, R>) -> Self
Source§impl<R> From<SdkError<DeleteFargateProfileError, R>> for Error
impl<R> From<SdkError<DeleteFargateProfileError, R>> for Error
Source§fn from(err: SdkError<DeleteFargateProfileError, R>) -> Self
fn from(err: SdkError<DeleteFargateProfileError, R>) -> Self
Source§impl<R> From<SdkError<DeleteNodegroupError, R>> for Error
impl<R> From<SdkError<DeleteNodegroupError, R>> for Error
Source§fn from(err: SdkError<DeleteNodegroupError, R>) -> Self
fn from(err: SdkError<DeleteNodegroupError, R>) -> Self
Source§impl<R> From<SdkError<DeletePodIdentityAssociationError, R>> for Error
impl<R> From<SdkError<DeletePodIdentityAssociationError, R>> for Error
Source§fn from(err: SdkError<DeletePodIdentityAssociationError, R>) -> Self
fn from(err: SdkError<DeletePodIdentityAssociationError, R>) -> Self
Source§impl<R> From<SdkError<DeregisterClusterError, R>> for Error
impl<R> From<SdkError<DeregisterClusterError, R>> for Error
Source§fn from(err: SdkError<DeregisterClusterError, R>) -> Self
fn from(err: SdkError<DeregisterClusterError, R>) -> Self
Source§impl<R> From<SdkError<DescribeAccessEntryError, R>> for Error
impl<R> From<SdkError<DescribeAccessEntryError, R>> for Error
Source§fn from(err: SdkError<DescribeAccessEntryError, R>) -> Self
fn from(err: SdkError<DescribeAccessEntryError, R>) -> Self
Source§impl<R> From<SdkError<DescribeAddonConfigurationError, R>> for Error
impl<R> From<SdkError<DescribeAddonConfigurationError, R>> for Error
Source§fn from(err: SdkError<DescribeAddonConfigurationError, R>) -> Self
fn from(err: SdkError<DescribeAddonConfigurationError, R>) -> Self
Source§impl<R> From<SdkError<DescribeAddonError, R>> for Error
impl<R> From<SdkError<DescribeAddonError, R>> for Error
Source§fn from(err: SdkError<DescribeAddonError, R>) -> Self
fn from(err: SdkError<DescribeAddonError, R>) -> Self
Source§impl<R> From<SdkError<DescribeAddonVersionsError, R>> for Error
impl<R> From<SdkError<DescribeAddonVersionsError, R>> for Error
Source§fn from(err: SdkError<DescribeAddonVersionsError, R>) -> Self
fn from(err: SdkError<DescribeAddonVersionsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeClusterError, R>> for Error
impl<R> From<SdkError<DescribeClusterError, R>> for Error
Source§fn from(err: SdkError<DescribeClusterError, R>) -> Self
fn from(err: SdkError<DescribeClusterError, R>) -> Self
Source§impl<R> From<SdkError<DescribeClusterVersionsError, R>> for Error
impl<R> From<SdkError<DescribeClusterVersionsError, R>> for Error
Source§fn from(err: SdkError<DescribeClusterVersionsError, R>) -> Self
fn from(err: SdkError<DescribeClusterVersionsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeEksAnywhereSubscriptionError, R>> for Error
impl<R> From<SdkError<DescribeEksAnywhereSubscriptionError, R>> for Error
Source§fn from(err: SdkError<DescribeEksAnywhereSubscriptionError, R>) -> Self
fn from(err: SdkError<DescribeEksAnywhereSubscriptionError, R>) -> Self
Source§impl<R> From<SdkError<DescribeFargateProfileError, R>> for Error
impl<R> From<SdkError<DescribeFargateProfileError, R>> for Error
Source§fn from(err: SdkError<DescribeFargateProfileError, R>) -> Self
fn from(err: SdkError<DescribeFargateProfileError, R>) -> Self
Source§impl<R> From<SdkError<DescribeIdentityProviderConfigError, R>> for Error
impl<R> From<SdkError<DescribeIdentityProviderConfigError, R>> for Error
Source§fn from(err: SdkError<DescribeIdentityProviderConfigError, R>) -> Self
fn from(err: SdkError<DescribeIdentityProviderConfigError, R>) -> Self
Source§impl<R> From<SdkError<DescribeInsightError, R>> for Error
impl<R> From<SdkError<DescribeInsightError, R>> for Error
Source§fn from(err: SdkError<DescribeInsightError, R>) -> Self
fn from(err: SdkError<DescribeInsightError, R>) -> Self
Source§impl<R> From<SdkError<DescribeNodegroupError, R>> for Error
impl<R> From<SdkError<DescribeNodegroupError, R>> for Error
Source§fn from(err: SdkError<DescribeNodegroupError, R>) -> Self
fn from(err: SdkError<DescribeNodegroupError, R>) -> Self
Source§impl<R> From<SdkError<DescribePodIdentityAssociationError, R>> for Error
impl<R> From<SdkError<DescribePodIdentityAssociationError, R>> for Error
Source§fn from(err: SdkError<DescribePodIdentityAssociationError, R>) -> Self
fn from(err: SdkError<DescribePodIdentityAssociationError, R>) -> Self
Source§impl<R> From<SdkError<DescribeUpdateError, R>> for Error
impl<R> From<SdkError<DescribeUpdateError, R>> for Error
Source§fn from(err: SdkError<DescribeUpdateError, R>) -> Self
fn from(err: SdkError<DescribeUpdateError, R>) -> Self
Source§impl<R> From<SdkError<DisassociateAccessPolicyError, R>> for Error
impl<R> From<SdkError<DisassociateAccessPolicyError, R>> for Error
Source§fn from(err: SdkError<DisassociateAccessPolicyError, R>) -> Self
fn from(err: SdkError<DisassociateAccessPolicyError, R>) -> Self
Source§impl<R> From<SdkError<DisassociateIdentityProviderConfigError, R>> for Error
impl<R> From<SdkError<DisassociateIdentityProviderConfigError, R>> for Error
Source§fn from(err: SdkError<DisassociateIdentityProviderConfigError, R>) -> Self
fn from(err: SdkError<DisassociateIdentityProviderConfigError, R>) -> Self
Source§impl<R> From<SdkError<ListAccessEntriesError, R>> for Error
impl<R> From<SdkError<ListAccessEntriesError, R>> for Error
Source§fn from(err: SdkError<ListAccessEntriesError, R>) -> Self
fn from(err: SdkError<ListAccessEntriesError, R>) -> Self
Source§impl<R> From<SdkError<ListAccessPoliciesError, R>> for Error
impl<R> From<SdkError<ListAccessPoliciesError, R>> for Error
Source§fn from(err: SdkError<ListAccessPoliciesError, R>) -> Self
fn from(err: SdkError<ListAccessPoliciesError, R>) -> Self
Source§impl<R> From<SdkError<ListAddonsError, R>> for Error
impl<R> From<SdkError<ListAddonsError, R>> for Error
Source§fn from(err: SdkError<ListAddonsError, R>) -> Self
fn from(err: SdkError<ListAddonsError, R>) -> Self
Source§impl<R> From<SdkError<ListAssociatedAccessPoliciesError, R>> for Error
impl<R> From<SdkError<ListAssociatedAccessPoliciesError, R>> for Error
Source§fn from(err: SdkError<ListAssociatedAccessPoliciesError, R>) -> Self
fn from(err: SdkError<ListAssociatedAccessPoliciesError, R>) -> Self
Source§impl<R> From<SdkError<ListClustersError, R>> for Error
impl<R> From<SdkError<ListClustersError, R>> for Error
Source§fn from(err: SdkError<ListClustersError, R>) -> Self
fn from(err: SdkError<ListClustersError, R>) -> Self
Source§impl<R> From<SdkError<ListEksAnywhereSubscriptionsError, R>> for Error
impl<R> From<SdkError<ListEksAnywhereSubscriptionsError, R>> for Error
Source§fn from(err: SdkError<ListEksAnywhereSubscriptionsError, R>) -> Self
fn from(err: SdkError<ListEksAnywhereSubscriptionsError, R>) -> Self
Source§impl<R> From<SdkError<ListFargateProfilesError, R>> for Error
impl<R> From<SdkError<ListFargateProfilesError, R>> for Error
Source§fn from(err: SdkError<ListFargateProfilesError, R>) -> Self
fn from(err: SdkError<ListFargateProfilesError, R>) -> Self
Source§impl<R> From<SdkError<ListIdentityProviderConfigsError, R>> for Error
impl<R> From<SdkError<ListIdentityProviderConfigsError, R>> for Error
Source§fn from(err: SdkError<ListIdentityProviderConfigsError, R>) -> Self
fn from(err: SdkError<ListIdentityProviderConfigsError, R>) -> Self
Source§impl<R> From<SdkError<ListInsightsError, R>> for Error
impl<R> From<SdkError<ListInsightsError, R>> for Error
Source§fn from(err: SdkError<ListInsightsError, R>) -> Self
fn from(err: SdkError<ListInsightsError, R>) -> Self
Source§impl<R> From<SdkError<ListNodegroupsError, R>> for Error
impl<R> From<SdkError<ListNodegroupsError, R>> for Error
Source§fn from(err: SdkError<ListNodegroupsError, R>) -> Self
fn from(err: SdkError<ListNodegroupsError, R>) -> Self
Source§impl<R> From<SdkError<ListPodIdentityAssociationsError, R>> for Error
impl<R> From<SdkError<ListPodIdentityAssociationsError, R>> for Error
Source§fn from(err: SdkError<ListPodIdentityAssociationsError, R>) -> Self
fn from(err: SdkError<ListPodIdentityAssociationsError, R>) -> Self
Source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
Source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Source§impl<R> From<SdkError<ListUpdatesError, R>> for Error
impl<R> From<SdkError<ListUpdatesError, R>> for Error
Source§fn from(err: SdkError<ListUpdatesError, R>) -> Self
fn from(err: SdkError<ListUpdatesError, R>) -> Self
Source§impl<R> From<SdkError<RegisterClusterError, R>> for Error
impl<R> From<SdkError<RegisterClusterError, R>> for Error
Source§fn from(err: SdkError<RegisterClusterError, R>) -> Self
fn from(err: SdkError<RegisterClusterError, 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<UpdateAccessEntryError, R>> for Error
impl<R> From<SdkError<UpdateAccessEntryError, R>> for Error
Source§fn from(err: SdkError<UpdateAccessEntryError, R>) -> Self
fn from(err: SdkError<UpdateAccessEntryError, R>) -> Self
Source§impl<R> From<SdkError<UpdateAddonError, R>> for Error
impl<R> From<SdkError<UpdateAddonError, R>> for Error
Source§fn from(err: SdkError<UpdateAddonError, R>) -> Self
fn from(err: SdkError<UpdateAddonError, R>) -> Self
Source§impl<R> From<SdkError<UpdateClusterConfigError, R>> for Error
impl<R> From<SdkError<UpdateClusterConfigError, R>> for Error
Source§fn from(err: SdkError<UpdateClusterConfigError, R>) -> Self
fn from(err: SdkError<UpdateClusterConfigError, R>) -> Self
Source§impl<R> From<SdkError<UpdateClusterVersionError, R>> for Error
impl<R> From<SdkError<UpdateClusterVersionError, R>> for Error
Source§fn from(err: SdkError<UpdateClusterVersionError, R>) -> Self
fn from(err: SdkError<UpdateClusterVersionError, R>) -> Self
Source§impl<R> From<SdkError<UpdateEksAnywhereSubscriptionError, R>> for Error
impl<R> From<SdkError<UpdateEksAnywhereSubscriptionError, R>> for Error
Source§fn from(err: SdkError<UpdateEksAnywhereSubscriptionError, R>) -> Self
fn from(err: SdkError<UpdateEksAnywhereSubscriptionError, R>) -> Self
Source§impl<R> From<SdkError<UpdateNodegroupConfigError, R>> for Error
impl<R> From<SdkError<UpdateNodegroupConfigError, R>> for Error
Source§fn from(err: SdkError<UpdateNodegroupConfigError, R>) -> Self
fn from(err: SdkError<UpdateNodegroupConfigError, R>) -> Self
Source§impl<R> From<SdkError<UpdateNodegroupVersionError, R>> for Error
impl<R> From<SdkError<UpdateNodegroupVersionError, R>> for Error
Source§fn from(err: SdkError<UpdateNodegroupVersionError, R>) -> Self
fn from(err: SdkError<UpdateNodegroupVersionError, R>) -> Self
Source§impl<R> From<SdkError<UpdatePodIdentityAssociationError, R>> for Error
impl<R> From<SdkError<UpdatePodIdentityAssociationError, R>> for Error
Source§fn from(err: SdkError<UpdatePodIdentityAssociationError, R>) -> Self
fn from(err: SdkError<UpdatePodIdentityAssociationError, 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<UpdateAccessEntryError> for Error
impl From<UpdateAccessEntryError> for Error
Source§fn from(err: UpdateAccessEntryError) -> Self
fn from(err: UpdateAccessEntryError) -> Self
Source§impl From<UpdateAddonError> for Error
impl From<UpdateAddonError> for Error
Source§fn from(err: UpdateAddonError) -> Self
fn from(err: UpdateAddonError) -> Self
Source§impl From<UpdateClusterConfigError> for Error
impl From<UpdateClusterConfigError> for Error
Source§fn from(err: UpdateClusterConfigError) -> Self
fn from(err: UpdateClusterConfigError) -> Self
Source§impl From<UpdateClusterVersionError> for Error
impl From<UpdateClusterVersionError> for Error
Source§fn from(err: UpdateClusterVersionError) -> Self
fn from(err: UpdateClusterVersionError) -> Self
Source§impl From<UpdateEksAnywhereSubscriptionError> for Error
impl From<UpdateEksAnywhereSubscriptionError> for Error
Source§fn from(err: UpdateEksAnywhereSubscriptionError) -> Self
fn from(err: UpdateEksAnywhereSubscriptionError) -> Self
Source§impl From<UpdateNodegroupConfigError> for Error
impl From<UpdateNodegroupConfigError> for Error
Source§fn from(err: UpdateNodegroupConfigError) -> Self
fn from(err: UpdateNodegroupConfigError) -> Self
Source§impl From<UpdateNodegroupVersionError> for Error
impl From<UpdateNodegroupVersionError> for Error
Source§fn from(err: UpdateNodegroupVersionError) -> Self
fn from(err: UpdateNodegroupVersionError) -> Self
Source§impl From<UpdatePodIdentityAssociationError> for Error
impl From<UpdatePodIdentityAssociationError> for Error
Source§fn from(err: UpdatePodIdentityAssociationError) -> Self
fn from(err: UpdatePodIdentityAssociationError) -> Self
Source§impl<O, E> From<WaiterError<O, E>> for Error
impl<O, E> From<WaiterError<O, E>> for Error
Source§fn from(err: WaiterError<O, E>) -> Self
fn from(err: WaiterError<O, E>) -> 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);