#[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
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)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<BuildError> for Error
impl From<BuildError> for Error
Source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Source§impl From<CreateCapacityProviderError> for Error
impl From<CreateCapacityProviderError> for Error
Source§fn from(err: CreateCapacityProviderError) -> Self
fn from(err: CreateCapacityProviderError) -> 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<CreateServiceError> for Error
impl From<CreateServiceError> for Error
Source§fn from(err: CreateServiceError) -> Self
fn from(err: CreateServiceError) -> Self
Source§impl From<CreateTaskSetError> for Error
impl From<CreateTaskSetError> for Error
Source§fn from(err: CreateTaskSetError) -> Self
fn from(err: CreateTaskSetError) -> Self
Source§impl From<DeleteAccountSettingError> for Error
impl From<DeleteAccountSettingError> for Error
Source§fn from(err: DeleteAccountSettingError) -> Self
fn from(err: DeleteAccountSettingError) -> Self
Source§impl From<DeleteAttributesError> for Error
impl From<DeleteAttributesError> for Error
Source§fn from(err: DeleteAttributesError) -> Self
fn from(err: DeleteAttributesError) -> Self
Source§impl From<DeleteCapacityProviderError> for Error
impl From<DeleteCapacityProviderError> for Error
Source§fn from(err: DeleteCapacityProviderError) -> Self
fn from(err: DeleteCapacityProviderError) -> 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<DeleteServiceError> for Error
impl From<DeleteServiceError> for Error
Source§fn from(err: DeleteServiceError) -> Self
fn from(err: DeleteServiceError) -> Self
Source§impl From<DeleteTaskDefinitionsError> for Error
impl From<DeleteTaskDefinitionsError> for Error
Source§fn from(err: DeleteTaskDefinitionsError) -> Self
fn from(err: DeleteTaskDefinitionsError) -> Self
Source§impl From<DeleteTaskSetError> for Error
impl From<DeleteTaskSetError> for Error
Source§fn from(err: DeleteTaskSetError) -> Self
fn from(err: DeleteTaskSetError) -> Self
Source§impl From<DeregisterContainerInstanceError> for Error
impl From<DeregisterContainerInstanceError> for Error
Source§fn from(err: DeregisterContainerInstanceError) -> Self
fn from(err: DeregisterContainerInstanceError) -> Self
Source§impl From<DeregisterTaskDefinitionError> for Error
impl From<DeregisterTaskDefinitionError> for Error
Source§fn from(err: DeregisterTaskDefinitionError) -> Self
fn from(err: DeregisterTaskDefinitionError) -> Self
Source§impl From<DescribeCapacityProvidersError> for Error
impl From<DescribeCapacityProvidersError> for Error
Source§fn from(err: DescribeCapacityProvidersError) -> Self
fn from(err: DescribeCapacityProvidersError) -> 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<DescribeContainerInstancesError> for Error
impl From<DescribeContainerInstancesError> for Error
Source§fn from(err: DescribeContainerInstancesError) -> Self
fn from(err: DescribeContainerInstancesError) -> Self
Source§impl From<DescribeServiceDeploymentsError> for Error
impl From<DescribeServiceDeploymentsError> for Error
Source§fn from(err: DescribeServiceDeploymentsError) -> Self
fn from(err: DescribeServiceDeploymentsError) -> Self
Source§impl From<DescribeServiceRevisionsError> for Error
impl From<DescribeServiceRevisionsError> for Error
Source§fn from(err: DescribeServiceRevisionsError) -> Self
fn from(err: DescribeServiceRevisionsError) -> Self
Source§impl From<DescribeServicesError> for Error
impl From<DescribeServicesError> for Error
Source§fn from(err: DescribeServicesError) -> Self
fn from(err: DescribeServicesError) -> Self
Source§impl From<DescribeTaskDefinitionError> for Error
impl From<DescribeTaskDefinitionError> for Error
Source§fn from(err: DescribeTaskDefinitionError) -> Self
fn from(err: DescribeTaskDefinitionError) -> Self
Source§impl From<DescribeTaskSetsError> for Error
impl From<DescribeTaskSetsError> for Error
Source§fn from(err: DescribeTaskSetsError) -> Self
fn from(err: DescribeTaskSetsError) -> Self
Source§impl From<DescribeTasksError> for Error
impl From<DescribeTasksError> for Error
Source§fn from(err: DescribeTasksError) -> Self
fn from(err: DescribeTasksError) -> Self
Source§impl From<DiscoverPollEndpointError> for Error
impl From<DiscoverPollEndpointError> for Error
Source§fn from(err: DiscoverPollEndpointError) -> Self
fn from(err: DiscoverPollEndpointError) -> Self
Source§impl From<ExecuteCommandError> for Error
impl From<ExecuteCommandError> for Error
Source§fn from(err: ExecuteCommandError) -> Self
fn from(err: ExecuteCommandError) -> Self
Source§impl From<GetTaskProtectionError> for Error
impl From<GetTaskProtectionError> for Error
Source§fn from(err: GetTaskProtectionError) -> Self
fn from(err: GetTaskProtectionError) -> Self
Source§impl From<ListAccountSettingsError> for Error
impl From<ListAccountSettingsError> for Error
Source§fn from(err: ListAccountSettingsError) -> Self
fn from(err: ListAccountSettingsError) -> Self
Source§impl From<ListAttributesError> for Error
impl From<ListAttributesError> for Error
Source§fn from(err: ListAttributesError) -> Self
fn from(err: ListAttributesError) -> 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<ListContainerInstancesError> for Error
impl From<ListContainerInstancesError> for Error
Source§fn from(err: ListContainerInstancesError) -> Self
fn from(err: ListContainerInstancesError) -> Self
Source§impl From<ListServiceDeploymentsError> for Error
impl From<ListServiceDeploymentsError> for Error
Source§fn from(err: ListServiceDeploymentsError) -> Self
fn from(err: ListServiceDeploymentsError) -> Self
Source§impl From<ListServicesByNamespaceError> for Error
impl From<ListServicesByNamespaceError> for Error
Source§fn from(err: ListServicesByNamespaceError) -> Self
fn from(err: ListServicesByNamespaceError) -> Self
Source§impl From<ListServicesError> for Error
impl From<ListServicesError> for Error
Source§fn from(err: ListServicesError) -> Self
fn from(err: ListServicesError) -> 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<ListTaskDefinitionFamiliesError> for Error
impl From<ListTaskDefinitionFamiliesError> for Error
Source§fn from(err: ListTaskDefinitionFamiliesError) -> Self
fn from(err: ListTaskDefinitionFamiliesError) -> Self
Source§impl From<ListTaskDefinitionsError> for Error
impl From<ListTaskDefinitionsError> for Error
Source§fn from(err: ListTaskDefinitionsError) -> Self
fn from(err: ListTaskDefinitionsError) -> Self
Source§impl From<ListTasksError> for Error
impl From<ListTasksError> for Error
Source§fn from(err: ListTasksError) -> Self
fn from(err: ListTasksError) -> Self
Source§impl From<PutAccountSettingDefaultError> for Error
impl From<PutAccountSettingDefaultError> for Error
Source§fn from(err: PutAccountSettingDefaultError) -> Self
fn from(err: PutAccountSettingDefaultError) -> Self
Source§impl From<PutAccountSettingError> for Error
impl From<PutAccountSettingError> for Error
Source§fn from(err: PutAccountSettingError) -> Self
fn from(err: PutAccountSettingError) -> Self
Source§impl From<PutAttributesError> for Error
impl From<PutAttributesError> for Error
Source§fn from(err: PutAttributesError) -> Self
fn from(err: PutAttributesError) -> Self
Source§impl From<PutClusterCapacityProvidersError> for Error
impl From<PutClusterCapacityProvidersError> for Error
Source§fn from(err: PutClusterCapacityProvidersError) -> Self
fn from(err: PutClusterCapacityProvidersError) -> Self
Source§impl From<RegisterContainerInstanceError> for Error
impl From<RegisterContainerInstanceError> for Error
Source§fn from(err: RegisterContainerInstanceError) -> Self
fn from(err: RegisterContainerInstanceError) -> Self
Source§impl From<RegisterTaskDefinitionError> for Error
impl From<RegisterTaskDefinitionError> for Error
Source§fn from(err: RegisterTaskDefinitionError) -> Self
fn from(err: RegisterTaskDefinitionError) -> Self
Source§impl From<RunTaskError> for Error
impl From<RunTaskError> for Error
Source§fn from(err: RunTaskError) -> Self
fn from(err: RunTaskError) -> Self
Source§impl<R> From<SdkError<CreateCapacityProviderError, R>> for Error
impl<R> From<SdkError<CreateCapacityProviderError, R>> for Error
Source§fn from(err: SdkError<CreateCapacityProviderError, R>) -> Self
fn from(err: SdkError<CreateCapacityProviderError, 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<CreateServiceError, R>> for Error
impl<R> From<SdkError<CreateServiceError, R>> for Error
Source§fn from(err: SdkError<CreateServiceError, R>) -> Self
fn from(err: SdkError<CreateServiceError, R>) -> Self
Source§impl<R> From<SdkError<CreateTaskSetError, R>> for Error
impl<R> From<SdkError<CreateTaskSetError, R>> for Error
Source§fn from(err: SdkError<CreateTaskSetError, R>) -> Self
fn from(err: SdkError<CreateTaskSetError, R>) -> Self
Source§impl<R> From<SdkError<DeleteAccountSettingError, R>> for Error
impl<R> From<SdkError<DeleteAccountSettingError, R>> for Error
Source§fn from(err: SdkError<DeleteAccountSettingError, R>) -> Self
fn from(err: SdkError<DeleteAccountSettingError, R>) -> Self
Source§impl<R> From<SdkError<DeleteAttributesError, R>> for Error
impl<R> From<SdkError<DeleteAttributesError, R>> for Error
Source§fn from(err: SdkError<DeleteAttributesError, R>) -> Self
fn from(err: SdkError<DeleteAttributesError, R>) -> Self
Source§impl<R> From<SdkError<DeleteCapacityProviderError, R>> for Error
impl<R> From<SdkError<DeleteCapacityProviderError, R>> for Error
Source§fn from(err: SdkError<DeleteCapacityProviderError, R>) -> Self
fn from(err: SdkError<DeleteCapacityProviderError, 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<DeleteServiceError, R>> for Error
impl<R> From<SdkError<DeleteServiceError, R>> for Error
Source§fn from(err: SdkError<DeleteServiceError, R>) -> Self
fn from(err: SdkError<DeleteServiceError, R>) -> Self
Source§impl<R> From<SdkError<DeleteTaskDefinitionsError, R>> for Error
impl<R> From<SdkError<DeleteTaskDefinitionsError, R>> for Error
Source§fn from(err: SdkError<DeleteTaskDefinitionsError, R>) -> Self
fn from(err: SdkError<DeleteTaskDefinitionsError, R>) -> Self
Source§impl<R> From<SdkError<DeleteTaskSetError, R>> for Error
impl<R> From<SdkError<DeleteTaskSetError, R>> for Error
Source§fn from(err: SdkError<DeleteTaskSetError, R>) -> Self
fn from(err: SdkError<DeleteTaskSetError, R>) -> Self
Source§impl<R> From<SdkError<DeregisterContainerInstanceError, R>> for Error
impl<R> From<SdkError<DeregisterContainerInstanceError, R>> for Error
Source§fn from(err: SdkError<DeregisterContainerInstanceError, R>) -> Self
fn from(err: SdkError<DeregisterContainerInstanceError, R>) -> Self
Source§impl<R> From<SdkError<DeregisterTaskDefinitionError, R>> for Error
impl<R> From<SdkError<DeregisterTaskDefinitionError, R>> for Error
Source§fn from(err: SdkError<DeregisterTaskDefinitionError, R>) -> Self
fn from(err: SdkError<DeregisterTaskDefinitionError, R>) -> Self
Source§impl<R> From<SdkError<DescribeCapacityProvidersError, R>> for Error
impl<R> From<SdkError<DescribeCapacityProvidersError, R>> for Error
Source§fn from(err: SdkError<DescribeCapacityProvidersError, R>) -> Self
fn from(err: SdkError<DescribeCapacityProvidersError, 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<DescribeContainerInstancesError, R>> for Error
impl<R> From<SdkError<DescribeContainerInstancesError, R>> for Error
Source§fn from(err: SdkError<DescribeContainerInstancesError, R>) -> Self
fn from(err: SdkError<DescribeContainerInstancesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeServiceDeploymentsError, R>> for Error
impl<R> From<SdkError<DescribeServiceDeploymentsError, R>> for Error
Source§fn from(err: SdkError<DescribeServiceDeploymentsError, R>) -> Self
fn from(err: SdkError<DescribeServiceDeploymentsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeServiceRevisionsError, R>> for Error
impl<R> From<SdkError<DescribeServiceRevisionsError, R>> for Error
Source§fn from(err: SdkError<DescribeServiceRevisionsError, R>) -> Self
fn from(err: SdkError<DescribeServiceRevisionsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeServicesError, R>> for Error
impl<R> From<SdkError<DescribeServicesError, R>> for Error
Source§fn from(err: SdkError<DescribeServicesError, R>) -> Self
fn from(err: SdkError<DescribeServicesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeTaskDefinitionError, R>> for Error
impl<R> From<SdkError<DescribeTaskDefinitionError, R>> for Error
Source§fn from(err: SdkError<DescribeTaskDefinitionError, R>) -> Self
fn from(err: SdkError<DescribeTaskDefinitionError, R>) -> Self
Source§impl<R> From<SdkError<DescribeTaskSetsError, R>> for Error
impl<R> From<SdkError<DescribeTaskSetsError, R>> for Error
Source§fn from(err: SdkError<DescribeTaskSetsError, R>) -> Self
fn from(err: SdkError<DescribeTaskSetsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeTasksError, R>> for Error
impl<R> From<SdkError<DescribeTasksError, R>> for Error
Source§fn from(err: SdkError<DescribeTasksError, R>) -> Self
fn from(err: SdkError<DescribeTasksError, R>) -> Self
Source§impl<R> From<SdkError<DiscoverPollEndpointError, R>> for Error
impl<R> From<SdkError<DiscoverPollEndpointError, R>> for Error
Source§fn from(err: SdkError<DiscoverPollEndpointError, R>) -> Self
fn from(err: SdkError<DiscoverPollEndpointError, R>) -> Self
Source§impl<R> From<SdkError<ExecuteCommandError, R>> for Error
impl<R> From<SdkError<ExecuteCommandError, R>> for Error
Source§fn from(err: SdkError<ExecuteCommandError, R>) -> Self
fn from(err: SdkError<ExecuteCommandError, R>) -> Self
Source§impl<R> From<SdkError<GetTaskProtectionError, R>> for Error
impl<R> From<SdkError<GetTaskProtectionError, R>> for Error
Source§fn from(err: SdkError<GetTaskProtectionError, R>) -> Self
fn from(err: SdkError<GetTaskProtectionError, R>) -> Self
Source§impl<R> From<SdkError<ListAccountSettingsError, R>> for Error
impl<R> From<SdkError<ListAccountSettingsError, R>> for Error
Source§fn from(err: SdkError<ListAccountSettingsError, R>) -> Self
fn from(err: SdkError<ListAccountSettingsError, R>) -> Self
Source§impl<R> From<SdkError<ListAttributesError, R>> for Error
impl<R> From<SdkError<ListAttributesError, R>> for Error
Source§fn from(err: SdkError<ListAttributesError, R>) -> Self
fn from(err: SdkError<ListAttributesError, 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<ListContainerInstancesError, R>> for Error
impl<R> From<SdkError<ListContainerInstancesError, R>> for Error
Source§fn from(err: SdkError<ListContainerInstancesError, R>) -> Self
fn from(err: SdkError<ListContainerInstancesError, R>) -> Self
Source§impl<R> From<SdkError<ListServiceDeploymentsError, R>> for Error
impl<R> From<SdkError<ListServiceDeploymentsError, R>> for Error
Source§fn from(err: SdkError<ListServiceDeploymentsError, R>) -> Self
fn from(err: SdkError<ListServiceDeploymentsError, R>) -> Self
Source§impl<R> From<SdkError<ListServicesByNamespaceError, R>> for Error
impl<R> From<SdkError<ListServicesByNamespaceError, R>> for Error
Source§fn from(err: SdkError<ListServicesByNamespaceError, R>) -> Self
fn from(err: SdkError<ListServicesByNamespaceError, R>) -> Self
Source§impl<R> From<SdkError<ListServicesError, R>> for Error
impl<R> From<SdkError<ListServicesError, R>> for Error
Source§fn from(err: SdkError<ListServicesError, R>) -> Self
fn from(err: SdkError<ListServicesError, 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<ListTaskDefinitionFamiliesError, R>> for Error
impl<R> From<SdkError<ListTaskDefinitionFamiliesError, R>> for Error
Source§fn from(err: SdkError<ListTaskDefinitionFamiliesError, R>) -> Self
fn from(err: SdkError<ListTaskDefinitionFamiliesError, R>) -> Self
Source§impl<R> From<SdkError<ListTaskDefinitionsError, R>> for Error
impl<R> From<SdkError<ListTaskDefinitionsError, R>> for Error
Source§fn from(err: SdkError<ListTaskDefinitionsError, R>) -> Self
fn from(err: SdkError<ListTaskDefinitionsError, R>) -> Self
Source§impl<R> From<SdkError<ListTasksError, R>> for Error
impl<R> From<SdkError<ListTasksError, R>> for Error
Source§fn from(err: SdkError<ListTasksError, R>) -> Self
fn from(err: SdkError<ListTasksError, R>) -> Self
Source§impl<R> From<SdkError<PutAccountSettingDefaultError, R>> for Error
impl<R> From<SdkError<PutAccountSettingDefaultError, R>> for Error
Source§fn from(err: SdkError<PutAccountSettingDefaultError, R>) -> Self
fn from(err: SdkError<PutAccountSettingDefaultError, R>) -> Self
Source§impl<R> From<SdkError<PutAccountSettingError, R>> for Error
impl<R> From<SdkError<PutAccountSettingError, R>> for Error
Source§fn from(err: SdkError<PutAccountSettingError, R>) -> Self
fn from(err: SdkError<PutAccountSettingError, R>) -> Self
Source§impl<R> From<SdkError<PutAttributesError, R>> for Error
impl<R> From<SdkError<PutAttributesError, R>> for Error
Source§fn from(err: SdkError<PutAttributesError, R>) -> Self
fn from(err: SdkError<PutAttributesError, R>) -> Self
Source§impl<R> From<SdkError<PutClusterCapacityProvidersError, R>> for Error
impl<R> From<SdkError<PutClusterCapacityProvidersError, R>> for Error
Source§fn from(err: SdkError<PutClusterCapacityProvidersError, R>) -> Self
fn from(err: SdkError<PutClusterCapacityProvidersError, R>) -> Self
Source§impl<R> From<SdkError<RegisterContainerInstanceError, R>> for Error
impl<R> From<SdkError<RegisterContainerInstanceError, R>> for Error
Source§fn from(err: SdkError<RegisterContainerInstanceError, R>) -> Self
fn from(err: SdkError<RegisterContainerInstanceError, R>) -> Self
Source§impl<R> From<SdkError<RegisterTaskDefinitionError, R>> for Error
impl<R> From<SdkError<RegisterTaskDefinitionError, R>> for Error
Source§fn from(err: SdkError<RegisterTaskDefinitionError, R>) -> Self
fn from(err: SdkError<RegisterTaskDefinitionError, R>) -> Self
Source§impl<R> From<SdkError<RunTaskError, R>> for Error
impl<R> From<SdkError<RunTaskError, R>> for Error
Source§fn from(err: SdkError<RunTaskError, R>) -> Self
fn from(err: SdkError<RunTaskError, R>) -> Self
Source§impl<R> From<SdkError<StartTaskError, R>> for Error
impl<R> From<SdkError<StartTaskError, R>> for Error
Source§fn from(err: SdkError<StartTaskError, R>) -> Self
fn from(err: SdkError<StartTaskError, R>) -> Self
Source§impl<R> From<SdkError<StopServiceDeploymentError, R>> for Error
impl<R> From<SdkError<StopServiceDeploymentError, R>> for Error
Source§fn from(err: SdkError<StopServiceDeploymentError, R>) -> Self
fn from(err: SdkError<StopServiceDeploymentError, R>) -> Self
Source§impl<R> From<SdkError<StopTaskError, R>> for Error
impl<R> From<SdkError<StopTaskError, R>> for Error
Source§fn from(err: SdkError<StopTaskError, R>) -> Self
fn from(err: SdkError<StopTaskError, R>) -> Self
Source§impl<R> From<SdkError<SubmitAttachmentStateChangesError, R>> for Error
impl<R> From<SdkError<SubmitAttachmentStateChangesError, R>> for Error
Source§fn from(err: SdkError<SubmitAttachmentStateChangesError, R>) -> Self
fn from(err: SdkError<SubmitAttachmentStateChangesError, R>) -> Self
Source§impl<R> From<SdkError<SubmitContainerStateChangeError, R>> for Error
impl<R> From<SdkError<SubmitContainerStateChangeError, R>> for Error
Source§fn from(err: SdkError<SubmitContainerStateChangeError, R>) -> Self
fn from(err: SdkError<SubmitContainerStateChangeError, R>) -> Self
Source§impl<R> From<SdkError<SubmitTaskStateChangeError, R>> for Error
impl<R> From<SdkError<SubmitTaskStateChangeError, R>> for Error
Source§fn from(err: SdkError<SubmitTaskStateChangeError, R>) -> Self
fn from(err: SdkError<SubmitTaskStateChangeError, 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<UpdateCapacityProviderError, R>> for Error
impl<R> From<SdkError<UpdateCapacityProviderError, R>> for Error
Source§fn from(err: SdkError<UpdateCapacityProviderError, R>) -> Self
fn from(err: SdkError<UpdateCapacityProviderError, 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<UpdateClusterSettingsError, R>> for Error
impl<R> From<SdkError<UpdateClusterSettingsError, R>> for Error
Source§fn from(err: SdkError<UpdateClusterSettingsError, R>) -> Self
fn from(err: SdkError<UpdateClusterSettingsError, R>) -> Self
Source§impl<R> From<SdkError<UpdateContainerAgentError, R>> for Error
impl<R> From<SdkError<UpdateContainerAgentError, R>> for Error
Source§fn from(err: SdkError<UpdateContainerAgentError, R>) -> Self
fn from(err: SdkError<UpdateContainerAgentError, R>) -> Self
Source§impl<R> From<SdkError<UpdateContainerInstancesStateError, R>> for Error
impl<R> From<SdkError<UpdateContainerInstancesStateError, R>> for Error
Source§fn from(err: SdkError<UpdateContainerInstancesStateError, R>) -> Self
fn from(err: SdkError<UpdateContainerInstancesStateError, R>) -> Self
Source§impl<R> From<SdkError<UpdateServiceError, R>> for Error
impl<R> From<SdkError<UpdateServiceError, R>> for Error
Source§fn from(err: SdkError<UpdateServiceError, R>) -> Self
fn from(err: SdkError<UpdateServiceError, R>) -> Self
Source§impl<R> From<SdkError<UpdateServicePrimaryTaskSetError, R>> for Error
impl<R> From<SdkError<UpdateServicePrimaryTaskSetError, R>> for Error
Source§fn from(err: SdkError<UpdateServicePrimaryTaskSetError, R>) -> Self
fn from(err: SdkError<UpdateServicePrimaryTaskSetError, R>) -> Self
Source§impl<R> From<SdkError<UpdateTaskProtectionError, R>> for Error
impl<R> From<SdkError<UpdateTaskProtectionError, R>> for Error
Source§fn from(err: SdkError<UpdateTaskProtectionError, R>) -> Self
fn from(err: SdkError<UpdateTaskProtectionError, R>) -> Self
Source§impl<R> From<SdkError<UpdateTaskSetError, R>> for Error
impl<R> From<SdkError<UpdateTaskSetError, R>> for Error
Source§fn from(err: SdkError<UpdateTaskSetError, R>) -> Self
fn from(err: SdkError<UpdateTaskSetError, R>) -> Self
Source§impl From<StartTaskError> for Error
impl From<StartTaskError> for Error
Source§fn from(err: StartTaskError) -> Self
fn from(err: StartTaskError) -> Self
Source§impl From<StopServiceDeploymentError> for Error
impl From<StopServiceDeploymentError> for Error
Source§fn from(err: StopServiceDeploymentError) -> Self
fn from(err: StopServiceDeploymentError) -> Self
Source§impl From<StopTaskError> for Error
impl From<StopTaskError> for Error
Source§fn from(err: StopTaskError) -> Self
fn from(err: StopTaskError) -> Self
Source§impl From<SubmitAttachmentStateChangesError> for Error
impl From<SubmitAttachmentStateChangesError> for Error
Source§fn from(err: SubmitAttachmentStateChangesError) -> Self
fn from(err: SubmitAttachmentStateChangesError) -> Self
Source§impl From<SubmitContainerStateChangeError> for Error
impl From<SubmitContainerStateChangeError> for Error
Source§fn from(err: SubmitContainerStateChangeError) -> Self
fn from(err: SubmitContainerStateChangeError) -> Self
Source§impl From<SubmitTaskStateChangeError> for Error
impl From<SubmitTaskStateChangeError> for Error
Source§fn from(err: SubmitTaskStateChangeError) -> Self
fn from(err: SubmitTaskStateChangeError) -> 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<UpdateCapacityProviderError> for Error
impl From<UpdateCapacityProviderError> for Error
Source§fn from(err: UpdateCapacityProviderError) -> Self
fn from(err: UpdateCapacityProviderError) -> 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<UpdateClusterSettingsError> for Error
impl From<UpdateClusterSettingsError> for Error
Source§fn from(err: UpdateClusterSettingsError) -> Self
fn from(err: UpdateClusterSettingsError) -> Self
Source§impl From<UpdateContainerAgentError> for Error
impl From<UpdateContainerAgentError> for Error
Source§fn from(err: UpdateContainerAgentError) -> Self
fn from(err: UpdateContainerAgentError) -> Self
Source§impl From<UpdateContainerInstancesStateError> for Error
impl From<UpdateContainerInstancesStateError> for Error
Source§fn from(err: UpdateContainerInstancesStateError) -> Self
fn from(err: UpdateContainerInstancesStateError) -> Self
Source§impl From<UpdateServiceError> for Error
impl From<UpdateServiceError> for Error
Source§fn from(err: UpdateServiceError) -> Self
fn from(err: UpdateServiceError) -> Self
Source§impl From<UpdateServicePrimaryTaskSetError> for Error
impl From<UpdateServicePrimaryTaskSetError> for Error
Source§fn from(err: UpdateServicePrimaryTaskSetError) -> Self
fn from(err: UpdateServicePrimaryTaskSetError) -> Self
Source§impl From<UpdateTaskProtectionError> for Error
impl From<UpdateTaskProtectionError> for Error
Source§fn from(err: UpdateTaskProtectionError) -> Self
fn from(err: UpdateTaskProtectionError) -> Self
Source§impl From<UpdateTaskSetError> for Error
impl From<UpdateTaskSetError> for Error
Source§fn from(err: UpdateTaskSetError) -> Self
fn from(err: UpdateTaskSetError) -> 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);