Enum Error

Source
#[non_exhaustive]
pub enum Error {
Show 28 variants AccessDeniedException(AccessDeniedException), AttributeLimitExceededException(AttributeLimitExceededException), BlockedException(BlockedException), ClientException(ClientException), ClusterContainsContainerInstancesException(ClusterContainsContainerInstancesException), ClusterContainsServicesException(ClusterContainsServicesException), ClusterContainsTasksException(ClusterContainsTasksException), ClusterNotFoundException(ClusterNotFoundException), ConflictException(ConflictException), InvalidParameterException(InvalidParameterException), LimitExceededException(LimitExceededException), MissingVersionException(MissingVersionException), NamespaceNotFoundException(NamespaceNotFoundException), NoUpdateAvailableException(NoUpdateAvailableException), PlatformTaskDefinitionIncompatibilityException(PlatformTaskDefinitionIncompatibilityException), PlatformUnknownException(PlatformUnknownException), ResourceInUseException(ResourceInUseException), ResourceNotFoundException(ResourceNotFoundException), ServerException(ServerException), ServiceDeploymentNotFoundException(ServiceDeploymentNotFoundException), ServiceNotActiveException(ServiceNotActiveException), ServiceNotFoundException(ServiceNotFoundException), TargetNotConnectedException(TargetNotConnectedException), TargetNotFoundException(TargetNotFoundException), TaskSetNotFoundException(TaskSetNotFoundException), UnsupportedFeatureException(UnsupportedFeatureException), UpdateInProgressException(UpdateInProgressException), Unhandled(Unhandled),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AccessDeniedException(AccessDeniedException)

You don't have authorization to perform the requested action.

§

AttributeLimitExceededException(AttributeLimitExceededException)

You can apply up to 10 custom attributes for each resource. You can view the attributes of a resource with ListAttributes. You can remove existing attributes on a resource with DeleteAttributes.

§

BlockedException(BlockedException)

Your Amazon Web Services account was blocked. For more information, contact Amazon Web ServicesSupport.

§

ClientException(ClientException)

These errors are usually caused by a client action. This client action might be using an action or resource on behalf of a user that doesn't have permissions to use the action or resource. Or, it might be specifying an identifier that isn't valid.

§

ClusterContainsContainerInstancesException(ClusterContainsContainerInstancesException)

You can't delete a cluster that has registered container instances. First, deregister the container instances before you can delete the cluster. For more information, see DeregisterContainerInstance.

§

ClusterContainsServicesException(ClusterContainsServicesException)

You can't delete a cluster that contains services. First, update the service to reduce its desired task count to 0, and then delete the service. For more information, see UpdateService and DeleteService.

§

ClusterContainsTasksException(ClusterContainsTasksException)

You can't delete a cluster that has active tasks.

§

ClusterNotFoundException(ClusterNotFoundException)

The specified cluster wasn't found. You can view your available clusters with ListClusters. Amazon ECS clusters are Region specific.

§

ConflictException(ConflictException)

The request could not be processed because of conflict in the current state of the resource.

§

InvalidParameterException(InvalidParameterException)

The specified parameter isn't valid. Review the available parameters for the API request.

For more information about service event errors, see Amazon ECS service event messages.

§

LimitExceededException(LimitExceededException)

The limit for the resource was exceeded.

§

MissingVersionException(MissingVersionException)

Amazon ECS can't determine the current version of the Amazon ECS container agent on the container instance and doesn't have enough information to proceed with an update. This could be because the agent running on the container instance is a previous or custom version that doesn't use our version information.

§

NamespaceNotFoundException(NamespaceNotFoundException)

The specified namespace wasn't found.

§

NoUpdateAvailableException(NoUpdateAvailableException)

There's no update available for this Amazon ECS container agent. This might be because the agent is already running the latest version or because it's so old that there's no update path to the current version.

§

PlatformTaskDefinitionIncompatibilityException(PlatformTaskDefinitionIncompatibilityException)

The specified platform version doesn't satisfy the required capabilities of the task definition.

§

PlatformUnknownException(PlatformUnknownException)

The specified platform version doesn't exist.

§

ResourceInUseException(ResourceInUseException)

The specified resource is in-use and can't be removed.

§

ResourceNotFoundException(ResourceNotFoundException)

The specified resource wasn't found.

§

ServerException(ServerException)

These errors are usually caused by a server issue.

§

ServiceDeploymentNotFoundException(ServiceDeploymentNotFoundException)

The service deploy ARN that you specified in the StopServiceDeployment doesn't exist. You can use ListServiceDeployments to retrieve the service deployment ARNs.

§

ServiceNotActiveException(ServiceNotActiveException)

The specified service isn't active. You can't update a service that's inactive. If you have previously deleted a service, you can re-create it with CreateService.

§

ServiceNotFoundException(ServiceNotFoundException)

The specified service wasn't found. You can view your available services with ListServices. Amazon ECS services are cluster specific and Region specific.

§

TargetNotConnectedException(TargetNotConnectedException)

The execute command cannot run. This error can be caused by any of the following configuration issues:

  • Incorrect IAM permissions

  • The SSM agent is not installed or is not running

  • There is an interface Amazon VPC endpoint for Amazon ECS, but there is not one for Systems Manager Session Manager

For information about how to troubleshoot the issues, see Troubleshooting issues with ECS Exec in the Amazon Elastic Container Service Developer Guide.

§

TargetNotFoundException(TargetNotFoundException)

The specified target wasn't found. You can view your available container instances with ListContainerInstances. Amazon ECS container instances are cluster-specific and Region-specific.

§

TaskSetNotFoundException(TaskSetNotFoundException)

The specified task set wasn't found. You can view your available task sets with DescribeTaskSets. Task sets are specific to each cluster, service and Region.

§

UnsupportedFeatureException(UnsupportedFeatureException)

The specified task isn't supported in this Region.

§

UpdateInProgressException(UpdateInProgressException)

There's already a current Amazon ECS container agent update in progress on the container instance that's specified. If the container agent becomes disconnected while it's in a transitional stage, such as PENDING or STAGING, the update process can get stuck in that state. However, when the agent reconnects, it resumes where it stopped previously.

§

Unhandled(Unhandled)

👎Deprecated: Matching 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 Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<BuildError> for Error

Source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateCapacityProviderError> for Error

Source§

fn from(err: CreateCapacityProviderError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateClusterError> for Error

Source§

fn from(err: CreateClusterError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateServiceError> for Error

Source§

fn from(err: CreateServiceError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTaskSetError> for Error

Source§

fn from(err: CreateTaskSetError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteAccountSettingError> for Error

Source§

fn from(err: DeleteAccountSettingError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteAttributesError> for Error

Source§

fn from(err: DeleteAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteCapacityProviderError> for Error

Source§

fn from(err: DeleteCapacityProviderError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteClusterError> for Error

Source§

fn from(err: DeleteClusterError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteServiceError> for Error

Source§

fn from(err: DeleteServiceError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteTaskDefinitionsError> for Error

Source§

fn from(err: DeleteTaskDefinitionsError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteTaskSetError> for Error

Source§

fn from(err: DeleteTaskSetError) -> Self

Converts to this type from the input type.
Source§

impl From<DeregisterContainerInstanceError> for Error

Source§

fn from(err: DeregisterContainerInstanceError) -> Self

Converts to this type from the input type.
Source§

impl From<DeregisterTaskDefinitionError> for Error

Source§

fn from(err: DeregisterTaskDefinitionError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeCapacityProvidersError> for Error

Source§

fn from(err: DescribeCapacityProvidersError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeClustersError> for Error

Source§

fn from(err: DescribeClustersError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeContainerInstancesError> for Error

Source§

fn from(err: DescribeContainerInstancesError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeServiceDeploymentsError> for Error

Source§

fn from(err: DescribeServiceDeploymentsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeServiceRevisionsError> for Error

Source§

fn from(err: DescribeServiceRevisionsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeServicesError> for Error

Source§

fn from(err: DescribeServicesError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTaskDefinitionError> for Error

Source§

fn from(err: DescribeTaskDefinitionError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTaskSetsError> for Error

Source§

fn from(err: DescribeTaskSetsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTasksError> for Error

Source§

fn from(err: DescribeTasksError) -> Self

Converts to this type from the input type.
Source§

impl From<DiscoverPollEndpointError> for Error

Source§

fn from(err: DiscoverPollEndpointError) -> Self

Converts to this type from the input type.
Source§

impl From<ExecuteCommandError> for Error

Source§

fn from(err: ExecuteCommandError) -> Self

Converts to this type from the input type.
Source§

impl From<GetTaskProtectionError> for Error

Source§

fn from(err: GetTaskProtectionError) -> Self

Converts to this type from the input type.
Source§

impl From<ListAccountSettingsError> for Error

Source§

fn from(err: ListAccountSettingsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListAttributesError> for Error

Source§

fn from(err: ListAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListClustersError> for Error

Source§

fn from(err: ListClustersError) -> Self

Converts to this type from the input type.
Source§

impl From<ListContainerInstancesError> for Error

Source§

fn from(err: ListContainerInstancesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListServiceDeploymentsError> for Error

Source§

fn from(err: ListServiceDeploymentsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListServicesByNamespaceError> for Error

Source§

fn from(err: ListServicesByNamespaceError) -> Self

Converts to this type from the input type.
Source§

impl From<ListServicesError> for Error

Source§

fn from(err: ListServicesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListTagsForResourceError> for Error

Source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<ListTaskDefinitionFamiliesError> for Error

Source§

fn from(err: ListTaskDefinitionFamiliesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListTaskDefinitionsError> for Error

Source§

fn from(err: ListTaskDefinitionsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListTasksError> for Error

Source§

fn from(err: ListTasksError) -> Self

Converts to this type from the input type.
Source§

impl From<PutAccountSettingDefaultError> for Error

Source§

fn from(err: PutAccountSettingDefaultError) -> Self

Converts to this type from the input type.
Source§

impl From<PutAccountSettingError> for Error

Source§

fn from(err: PutAccountSettingError) -> Self

Converts to this type from the input type.
Source§

impl From<PutAttributesError> for Error

Source§

fn from(err: PutAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<PutClusterCapacityProvidersError> for Error

Source§

fn from(err: PutClusterCapacityProvidersError) -> Self

Converts to this type from the input type.
Source§

impl From<RegisterContainerInstanceError> for Error

Source§

fn from(err: RegisterContainerInstanceError) -> Self

Converts to this type from the input type.
Source§

impl From<RegisterTaskDefinitionError> for Error

Source§

fn from(err: RegisterTaskDefinitionError) -> Self

Converts to this type from the input type.
Source§

impl From<RunTaskError> for Error

Source§

fn from(err: RunTaskError) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateCapacityProviderError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateCapacityProviderError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateClusterError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateClusterError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateServiceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateServiceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateTaskSetError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateTaskSetError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteAccountSettingError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteAccountSettingError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteAttributesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteAttributesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteCapacityProviderError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteCapacityProviderError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteClusterError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteClusterError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteServiceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteServiceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteTaskDefinitionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteTaskDefinitionsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteTaskSetError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteTaskSetError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeregisterContainerInstanceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeregisterContainerInstanceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeregisterTaskDefinitionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeregisterTaskDefinitionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeCapacityProvidersError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeCapacityProvidersError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeClustersError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeClustersError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeContainerInstancesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeContainerInstancesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeServiceDeploymentsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeServiceDeploymentsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeServiceRevisionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeServiceRevisionsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeServicesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeServicesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeTaskDefinitionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeTaskDefinitionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeTaskSetsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeTaskSetsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeTasksError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeTasksError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DiscoverPollEndpointError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DiscoverPollEndpointError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ExecuteCommandError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ExecuteCommandError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetTaskProtectionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetTaskProtectionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListAccountSettingsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListAccountSettingsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListAttributesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListAttributesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListClustersError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListClustersError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListContainerInstancesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListContainerInstancesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListServiceDeploymentsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListServiceDeploymentsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListServicesByNamespaceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListServicesByNamespaceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListServicesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListServicesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListTagsForResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListTaskDefinitionFamiliesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListTaskDefinitionFamiliesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListTaskDefinitionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListTaskDefinitionsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListTasksError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListTasksError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutAccountSettingDefaultError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutAccountSettingDefaultError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutAccountSettingError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutAccountSettingError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutAttributesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutAttributesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutClusterCapacityProvidersError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutClusterCapacityProvidersError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RegisterContainerInstanceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RegisterContainerInstanceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RegisterTaskDefinitionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RegisterTaskDefinitionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RunTaskError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RunTaskError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<StartTaskError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<StartTaskError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<StopServiceDeploymentError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<StopServiceDeploymentError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<StopTaskError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<StopTaskError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<SubmitAttachmentStateChangesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<SubmitAttachmentStateChangesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<SubmitContainerStateChangeError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<SubmitContainerStateChangeError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<SubmitTaskStateChangeError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<SubmitTaskStateChangeError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<TagResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<TagResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UntagResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UntagResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateCapacityProviderError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateCapacityProviderError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateClusterError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateClusterError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateClusterSettingsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateClusterSettingsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateContainerAgentError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateContainerAgentError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateContainerInstancesStateError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateContainerInstancesStateError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateServiceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateServiceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateServicePrimaryTaskSetError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateServicePrimaryTaskSetError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateTaskProtectionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateTaskProtectionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateTaskSetError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateTaskSetError, R>) -> Self

Converts to this type from the input type.
Source§

impl From<StartTaskError> for Error

Source§

fn from(err: StartTaskError) -> Self

Converts to this type from the input type.
Source§

impl From<StopServiceDeploymentError> for Error

Source§

fn from(err: StopServiceDeploymentError) -> Self

Converts to this type from the input type.
Source§

impl From<StopTaskError> for Error

Source§

fn from(err: StopTaskError) -> Self

Converts to this type from the input type.
Source§

impl From<SubmitAttachmentStateChangesError> for Error

Source§

fn from(err: SubmitAttachmentStateChangesError) -> Self

Converts to this type from the input type.
Source§

impl From<SubmitContainerStateChangeError> for Error

Source§

fn from(err: SubmitContainerStateChangeError) -> Self

Converts to this type from the input type.
Source§

impl From<SubmitTaskStateChangeError> for Error

Source§

fn from(err: SubmitTaskStateChangeError) -> Self

Converts to this type from the input type.
Source§

impl From<TagResourceError> for Error

Source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<UntagResourceError> for Error

Source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateCapacityProviderError> for Error

Source§

fn from(err: UpdateCapacityProviderError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateClusterError> for Error

Source§

fn from(err: UpdateClusterError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateClusterSettingsError> for Error

Source§

fn from(err: UpdateClusterSettingsError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateContainerAgentError> for Error

Source§

fn from(err: UpdateContainerAgentError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateContainerInstancesStateError> for Error

Source§

fn from(err: UpdateContainerInstancesStateError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateServiceError> for Error

Source§

fn from(err: UpdateServiceError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateServicePrimaryTaskSetError> for Error

Source§

fn from(err: UpdateServicePrimaryTaskSetError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateTaskProtectionError> for Error

Source§

fn from(err: UpdateTaskProtectionError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateTaskSetError> for Error

Source§

fn from(err: UpdateTaskSetError) -> Self

Converts to this type from the input type.
Source§

impl<O, E> From<WaiterError<O, E>> for Error
where O: Debug + Send + Sync + 'static, E: Error + Send + Sync + 'static,

Source§

fn from(err: WaiterError<O, E>) -> Self

Converts to this type from the input type.
Source§

impl ProvideErrorMetadata for Error

Source§

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
Source§

fn code(&self) -> Option<&str>

Returns the error code if it’s available.
Source§

fn message(&self) -> Option<&str>

Returns the error message, if there is one.
Source§

impl RequestId for Error

Source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Paint for T
where T: ?Sized,

Source§

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 primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
Source§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
Source§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
Source§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
Source§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
Source§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
Source§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
Source§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
Source§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
Source§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
Source§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
Source§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlack].

§Example
println!("{}", value.bright_black());
Source§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
Source§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightGreen].

§Example
println!("{}", value.bright_green());
Source§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
Source§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
Source§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.bright_magenta());
Source§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
Source§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightWhite].

§Example
println!("{}", value.bright_white());
Source§

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>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
Source§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
Source§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
Source§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
Source§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
Source§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
Source§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
Source§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
Source§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
Source§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
Source§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
Source§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlack].

§Example
println!("{}", value.on_bright_black());
Source§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
Source§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightGreen].

§Example
println!("{}", value.on_bright_green());
Source§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
Source§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlue].

§Example
println!("{}", value.on_bright_blue());
Source§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
Source§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
Source§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
Source§

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 bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
Source§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
Source§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
Source§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
Source§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
Source§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
Source§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
Source§

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 mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
Source§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
Source§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
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.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
Source§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
Source§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
Source§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
Source§

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);
Source§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new Painted with a default Style. Read more
Source§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,