#[non_exhaustive]pub enum Error {
Show 41 variants
ActionNotFoundException(ActionNotFoundException),
ActionTypeNotFoundException(ActionTypeNotFoundException),
ApprovalAlreadyCompletedException(ApprovalAlreadyCompletedException),
ConcurrentModificationException(ConcurrentModificationException),
ConcurrentPipelineExecutionsLimitExceededException(ConcurrentPipelineExecutionsLimitExceededException),
ConditionNotOverridableException(ConditionNotOverridableException),
ConflictException(ConflictException),
DuplicatedStopRequestException(DuplicatedStopRequestException),
InvalidActionDeclarationException(InvalidActionDeclarationException),
InvalidApprovalTokenException(InvalidApprovalTokenException),
InvalidArnException(InvalidArnException),
InvalidBlockerDeclarationException(InvalidBlockerDeclarationException),
InvalidClientTokenException(InvalidClientTokenException),
InvalidJobException(InvalidJobException),
InvalidJobStateException(InvalidJobStateException),
InvalidNextTokenException(InvalidNextTokenException),
InvalidNonceException(InvalidNonceException),
InvalidStageDeclarationException(InvalidStageDeclarationException),
InvalidStructureException(InvalidStructureException),
InvalidTagsException(InvalidTagsException),
InvalidWebhookAuthenticationParametersException(InvalidWebhookAuthenticationParametersException),
InvalidWebhookFilterPatternException(InvalidWebhookFilterPatternException),
JobNotFoundException(JobNotFoundException),
LimitExceededException(LimitExceededException),
NotLatestPipelineExecutionException(NotLatestPipelineExecutionException),
OutputVariablesSizeExceededException(OutputVariablesSizeExceededException),
PipelineExecutionNotFoundException(PipelineExecutionNotFoundException),
PipelineExecutionNotStoppableException(PipelineExecutionNotStoppableException),
PipelineExecutionOutdatedException(PipelineExecutionOutdatedException),
PipelineNameInUseException(PipelineNameInUseException),
PipelineNotFoundException(PipelineNotFoundException),
PipelineVersionNotFoundException(PipelineVersionNotFoundException),
RequestFailedException(RequestFailedException),
ResourceNotFoundException(ResourceNotFoundException),
StageNotFoundException(StageNotFoundException),
StageNotRetryableException(StageNotRetryableException),
TooManyTagsException(TooManyTagsException),
UnableToRollbackStageException(UnableToRollbackStageException),
ValidationException(ValidationException),
WebhookNotFoundException(WebhookNotFoundException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ActionNotFoundException(ActionNotFoundException)
The specified action cannot be found.
ActionTypeNotFoundException(ActionTypeNotFoundException)
The specified action type cannot be found.
ApprovalAlreadyCompletedException(ApprovalAlreadyCompletedException)
The approval action has already been approved or rejected.
ConcurrentModificationException(ConcurrentModificationException)
Unable to modify the tag due to a simultaneous update request.
ConcurrentPipelineExecutionsLimitExceededException(ConcurrentPipelineExecutionsLimitExceededException)
The pipeline has reached the limit for concurrent pipeline executions.
ConditionNotOverridableException(ConditionNotOverridableException)
Unable to override because the condition does not allow overrides.
ConflictException(ConflictException)
Your request cannot be handled because the pipeline is busy handling ongoing activities. Try again later.
DuplicatedStopRequestException(DuplicatedStopRequestException)
The pipeline execution is already in a Stopping
state. If you already chose to stop and wait, you cannot make that request again. You can choose to stop and abandon now, but be aware that this option can lead to failed tasks or out of sequence tasks. If you already chose to stop and abandon, you cannot make that request again.
InvalidActionDeclarationException(InvalidActionDeclarationException)
The action declaration was specified in an invalid format.
InvalidApprovalTokenException(InvalidApprovalTokenException)
The approval request already received a response or has expired.
InvalidArnException(InvalidArnException)
The specified resource ARN is invalid.
InvalidBlockerDeclarationException(InvalidBlockerDeclarationException)
Reserved for future use.
InvalidClientTokenException(InvalidClientTokenException)
The client token was specified in an invalid format
InvalidJobException(InvalidJobException)
The job was specified in an invalid format or cannot be found.
InvalidJobStateException(InvalidJobStateException)
The job state was specified in an invalid format.
InvalidNextTokenException(InvalidNextTokenException)
The next token was specified in an invalid format. Make sure that the next token you provide is the token returned by a previous call.
InvalidNonceException(InvalidNonceException)
The nonce was specified in an invalid format.
InvalidStageDeclarationException(InvalidStageDeclarationException)
The stage declaration was specified in an invalid format.
InvalidStructureException(InvalidStructureException)
The structure was specified in an invalid format.
InvalidTagsException(InvalidTagsException)
The specified resource tags are invalid.
InvalidWebhookAuthenticationParametersException(InvalidWebhookAuthenticationParametersException)
The specified authentication type is in an invalid format.
InvalidWebhookFilterPatternException(InvalidWebhookFilterPatternException)
The specified event filter rule is in an invalid format.
JobNotFoundException(JobNotFoundException)
The job was specified in an invalid format or cannot be found.
LimitExceededException(LimitExceededException)
The number of pipelines associated with the Amazon Web Services account has exceeded the limit allowed for the account.
NotLatestPipelineExecutionException(NotLatestPipelineExecutionException)
The stage has failed in a later run of the pipeline and the pipelineExecutionId
associated with the request is out of date.
OutputVariablesSizeExceededException(OutputVariablesSizeExceededException)
Exceeded the total size limit for all variables in the pipeline.
PipelineExecutionNotFoundException(PipelineExecutionNotFoundException)
The pipeline execution was specified in an invalid format or cannot be found, or an execution ID does not belong to the specified pipeline.
PipelineExecutionNotStoppableException(PipelineExecutionNotStoppableException)
Unable to stop the pipeline execution. The execution might already be in a Stopped
state, or it might no longer be in progress.
PipelineExecutionOutdatedException(PipelineExecutionOutdatedException)
The specified pipeline execution is outdated and cannot be used as a target pipeline execution for rollback.
PipelineNameInUseException(PipelineNameInUseException)
The specified pipeline name is already in use.
PipelineNotFoundException(PipelineNotFoundException)
The pipeline was specified in an invalid format or cannot be found.
PipelineVersionNotFoundException(PipelineVersionNotFoundException)
The pipeline version was specified in an invalid format or cannot be found.
RequestFailedException(RequestFailedException)
The request failed because of an unknown error, exception, or failure.
ResourceNotFoundException(ResourceNotFoundException)
The resource was specified in an invalid format.
StageNotFoundException(StageNotFoundException)
The stage was specified in an invalid format or cannot be found.
StageNotRetryableException(StageNotRetryableException)
Unable to retry. The pipeline structure or stage state might have changed while actions awaited retry, or the stage contains no failed actions.
TooManyTagsException(TooManyTagsException)
The tags limit for a resource has been exceeded.
UnableToRollbackStageException(UnableToRollbackStageException)
Unable to roll back the stage. The cause might be if the pipeline version has changed since the target pipeline execution was deployed, the stage is currently running, or an incorrect target pipeline execution ID was provided.
ValidationException(ValidationException)
The validation was specified in an invalid format.
WebhookNotFoundException(WebhookNotFoundException)
The specified webhook was entered in an invalid format or cannot be found.
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.81.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<AcknowledgeJobError> for Error
impl From<AcknowledgeJobError> for Error
source§fn from(err: AcknowledgeJobError) -> Self
fn from(err: AcknowledgeJobError) -> Self
source§impl From<AcknowledgeThirdPartyJobError> for Error
impl From<AcknowledgeThirdPartyJobError> for Error
source§fn from(err: AcknowledgeThirdPartyJobError) -> Self
fn from(err: AcknowledgeThirdPartyJobError) -> 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<CreateCustomActionTypeError> for Error
impl From<CreateCustomActionTypeError> for Error
source§fn from(err: CreateCustomActionTypeError) -> Self
fn from(err: CreateCustomActionTypeError) -> Self
source§impl From<CreatePipelineError> for Error
impl From<CreatePipelineError> for Error
source§fn from(err: CreatePipelineError) -> Self
fn from(err: CreatePipelineError) -> Self
source§impl From<DeleteCustomActionTypeError> for Error
impl From<DeleteCustomActionTypeError> for Error
source§fn from(err: DeleteCustomActionTypeError) -> Self
fn from(err: DeleteCustomActionTypeError) -> Self
source§impl From<DeletePipelineError> for Error
impl From<DeletePipelineError> for Error
source§fn from(err: DeletePipelineError) -> Self
fn from(err: DeletePipelineError) -> Self
source§impl From<DeleteWebhookError> for Error
impl From<DeleteWebhookError> for Error
source§fn from(err: DeleteWebhookError) -> Self
fn from(err: DeleteWebhookError) -> Self
source§impl From<DeregisterWebhookWithThirdPartyError> for Error
impl From<DeregisterWebhookWithThirdPartyError> for Error
source§fn from(err: DeregisterWebhookWithThirdPartyError) -> Self
fn from(err: DeregisterWebhookWithThirdPartyError) -> Self
source§impl From<DisableStageTransitionError> for Error
impl From<DisableStageTransitionError> for Error
source§fn from(err: DisableStageTransitionError) -> Self
fn from(err: DisableStageTransitionError) -> Self
source§impl From<EnableStageTransitionError> for Error
impl From<EnableStageTransitionError> for Error
source§fn from(err: EnableStageTransitionError) -> Self
fn from(err: EnableStageTransitionError) -> Self
source§impl From<GetActionTypeError> for Error
impl From<GetActionTypeError> for Error
source§fn from(err: GetActionTypeError) -> Self
fn from(err: GetActionTypeError) -> Self
source§impl From<GetJobDetailsError> for Error
impl From<GetJobDetailsError> for Error
source§fn from(err: GetJobDetailsError) -> Self
fn from(err: GetJobDetailsError) -> Self
source§impl From<GetPipelineError> for Error
impl From<GetPipelineError> for Error
source§fn from(err: GetPipelineError) -> Self
fn from(err: GetPipelineError) -> Self
source§impl From<GetPipelineExecutionError> for Error
impl From<GetPipelineExecutionError> for Error
source§fn from(err: GetPipelineExecutionError) -> Self
fn from(err: GetPipelineExecutionError) -> Self
source§impl From<GetPipelineStateError> for Error
impl From<GetPipelineStateError> for Error
source§fn from(err: GetPipelineStateError) -> Self
fn from(err: GetPipelineStateError) -> Self
source§impl From<GetThirdPartyJobDetailsError> for Error
impl From<GetThirdPartyJobDetailsError> for Error
source§fn from(err: GetThirdPartyJobDetailsError) -> Self
fn from(err: GetThirdPartyJobDetailsError) -> Self
source§impl From<ListActionExecutionsError> for Error
impl From<ListActionExecutionsError> for Error
source§fn from(err: ListActionExecutionsError) -> Self
fn from(err: ListActionExecutionsError) -> Self
source§impl From<ListActionTypesError> for Error
impl From<ListActionTypesError> for Error
source§fn from(err: ListActionTypesError) -> Self
fn from(err: ListActionTypesError) -> Self
source§impl From<ListPipelineExecutionsError> for Error
impl From<ListPipelineExecutionsError> for Error
source§fn from(err: ListPipelineExecutionsError) -> Self
fn from(err: ListPipelineExecutionsError) -> Self
source§impl From<ListPipelinesError> for Error
impl From<ListPipelinesError> for Error
source§fn from(err: ListPipelinesError) -> Self
fn from(err: ListPipelinesError) -> Self
source§impl From<ListRuleExecutionsError> for Error
impl From<ListRuleExecutionsError> for Error
source§fn from(err: ListRuleExecutionsError) -> Self
fn from(err: ListRuleExecutionsError) -> Self
source§impl From<ListRuleTypesError> for Error
impl From<ListRuleTypesError> for Error
source§fn from(err: ListRuleTypesError) -> Self
fn from(err: ListRuleTypesError) -> 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<ListWebhooksError> for Error
impl From<ListWebhooksError> for Error
source§fn from(err: ListWebhooksError) -> Self
fn from(err: ListWebhooksError) -> Self
source§impl From<OverrideStageConditionError> for Error
impl From<OverrideStageConditionError> for Error
source§fn from(err: OverrideStageConditionError) -> Self
fn from(err: OverrideStageConditionError) -> Self
source§impl From<PollForJobsError> for Error
impl From<PollForJobsError> for Error
source§fn from(err: PollForJobsError) -> Self
fn from(err: PollForJobsError) -> Self
source§impl From<PollForThirdPartyJobsError> for Error
impl From<PollForThirdPartyJobsError> for Error
source§fn from(err: PollForThirdPartyJobsError) -> Self
fn from(err: PollForThirdPartyJobsError) -> Self
source§impl From<PutActionRevisionError> for Error
impl From<PutActionRevisionError> for Error
source§fn from(err: PutActionRevisionError) -> Self
fn from(err: PutActionRevisionError) -> Self
source§impl From<PutApprovalResultError> for Error
impl From<PutApprovalResultError> for Error
source§fn from(err: PutApprovalResultError) -> Self
fn from(err: PutApprovalResultError) -> Self
source§impl From<PutJobFailureResultError> for Error
impl From<PutJobFailureResultError> for Error
source§fn from(err: PutJobFailureResultError) -> Self
fn from(err: PutJobFailureResultError) -> Self
source§impl From<PutJobSuccessResultError> for Error
impl From<PutJobSuccessResultError> for Error
source§fn from(err: PutJobSuccessResultError) -> Self
fn from(err: PutJobSuccessResultError) -> Self
source§impl From<PutThirdPartyJobFailureResultError> for Error
impl From<PutThirdPartyJobFailureResultError> for Error
source§fn from(err: PutThirdPartyJobFailureResultError) -> Self
fn from(err: PutThirdPartyJobFailureResultError) -> Self
source§impl From<PutThirdPartyJobSuccessResultError> for Error
impl From<PutThirdPartyJobSuccessResultError> for Error
source§fn from(err: PutThirdPartyJobSuccessResultError) -> Self
fn from(err: PutThirdPartyJobSuccessResultError) -> Self
source§impl From<PutWebhookError> for Error
impl From<PutWebhookError> for Error
source§fn from(err: PutWebhookError) -> Self
fn from(err: PutWebhookError) -> Self
source§impl From<RegisterWebhookWithThirdPartyError> for Error
impl From<RegisterWebhookWithThirdPartyError> for Error
source§fn from(err: RegisterWebhookWithThirdPartyError) -> Self
fn from(err: RegisterWebhookWithThirdPartyError) -> Self
source§impl From<RetryStageExecutionError> for Error
impl From<RetryStageExecutionError> for Error
source§fn from(err: RetryStageExecutionError) -> Self
fn from(err: RetryStageExecutionError) -> Self
source§impl From<RollbackStageError> for Error
impl From<RollbackStageError> for Error
source§fn from(err: RollbackStageError) -> Self
fn from(err: RollbackStageError) -> Self
source§impl<R> From<SdkError<AcknowledgeJobError, R>> for Error
impl<R> From<SdkError<AcknowledgeJobError, R>> for Error
source§fn from(err: SdkError<AcknowledgeJobError, R>) -> Self
fn from(err: SdkError<AcknowledgeJobError, R>) -> Self
source§impl<R> From<SdkError<AcknowledgeThirdPartyJobError, R>> for Error
impl<R> From<SdkError<AcknowledgeThirdPartyJobError, R>> for Error
source§fn from(err: SdkError<AcknowledgeThirdPartyJobError, R>) -> Self
fn from(err: SdkError<AcknowledgeThirdPartyJobError, R>) -> Self
source§impl<R> From<SdkError<CreateCustomActionTypeError, R>> for Error
impl<R> From<SdkError<CreateCustomActionTypeError, R>> for Error
source§fn from(err: SdkError<CreateCustomActionTypeError, R>) -> Self
fn from(err: SdkError<CreateCustomActionTypeError, R>) -> Self
source§impl<R> From<SdkError<CreatePipelineError, R>> for Error
impl<R> From<SdkError<CreatePipelineError, R>> for Error
source§fn from(err: SdkError<CreatePipelineError, R>) -> Self
fn from(err: SdkError<CreatePipelineError, R>) -> Self
source§impl<R> From<SdkError<DeleteCustomActionTypeError, R>> for Error
impl<R> From<SdkError<DeleteCustomActionTypeError, R>> for Error
source§fn from(err: SdkError<DeleteCustomActionTypeError, R>) -> Self
fn from(err: SdkError<DeleteCustomActionTypeError, R>) -> Self
source§impl<R> From<SdkError<DeletePipelineError, R>> for Error
impl<R> From<SdkError<DeletePipelineError, R>> for Error
source§fn from(err: SdkError<DeletePipelineError, R>) -> Self
fn from(err: SdkError<DeletePipelineError, R>) -> Self
source§impl<R> From<SdkError<DeleteWebhookError, R>> for Error
impl<R> From<SdkError<DeleteWebhookError, R>> for Error
source§fn from(err: SdkError<DeleteWebhookError, R>) -> Self
fn from(err: SdkError<DeleteWebhookError, R>) -> Self
source§impl<R> From<SdkError<DeregisterWebhookWithThirdPartyError, R>> for Error
impl<R> From<SdkError<DeregisterWebhookWithThirdPartyError, R>> for Error
source§fn from(err: SdkError<DeregisterWebhookWithThirdPartyError, R>) -> Self
fn from(err: SdkError<DeregisterWebhookWithThirdPartyError, R>) -> Self
source§impl<R> From<SdkError<DisableStageTransitionError, R>> for Error
impl<R> From<SdkError<DisableStageTransitionError, R>> for Error
source§fn from(err: SdkError<DisableStageTransitionError, R>) -> Self
fn from(err: SdkError<DisableStageTransitionError, R>) -> Self
source§impl<R> From<SdkError<EnableStageTransitionError, R>> for Error
impl<R> From<SdkError<EnableStageTransitionError, R>> for Error
source§fn from(err: SdkError<EnableStageTransitionError, R>) -> Self
fn from(err: SdkError<EnableStageTransitionError, R>) -> Self
source§impl<R> From<SdkError<GetActionTypeError, R>> for Error
impl<R> From<SdkError<GetActionTypeError, R>> for Error
source§fn from(err: SdkError<GetActionTypeError, R>) -> Self
fn from(err: SdkError<GetActionTypeError, R>) -> Self
source§impl<R> From<SdkError<GetJobDetailsError, R>> for Error
impl<R> From<SdkError<GetJobDetailsError, R>> for Error
source§fn from(err: SdkError<GetJobDetailsError, R>) -> Self
fn from(err: SdkError<GetJobDetailsError, R>) -> Self
source§impl<R> From<SdkError<GetPipelineError, R>> for Error
impl<R> From<SdkError<GetPipelineError, R>> for Error
source§fn from(err: SdkError<GetPipelineError, R>) -> Self
fn from(err: SdkError<GetPipelineError, R>) -> Self
source§impl<R> From<SdkError<GetPipelineExecutionError, R>> for Error
impl<R> From<SdkError<GetPipelineExecutionError, R>> for Error
source§fn from(err: SdkError<GetPipelineExecutionError, R>) -> Self
fn from(err: SdkError<GetPipelineExecutionError, R>) -> Self
source§impl<R> From<SdkError<GetPipelineStateError, R>> for Error
impl<R> From<SdkError<GetPipelineStateError, R>> for Error
source§fn from(err: SdkError<GetPipelineStateError, R>) -> Self
fn from(err: SdkError<GetPipelineStateError, R>) -> Self
source§impl<R> From<SdkError<GetThirdPartyJobDetailsError, R>> for Error
impl<R> From<SdkError<GetThirdPartyJobDetailsError, R>> for Error
source§fn from(err: SdkError<GetThirdPartyJobDetailsError, R>) -> Self
fn from(err: SdkError<GetThirdPartyJobDetailsError, R>) -> Self
source§impl<R> From<SdkError<ListActionExecutionsError, R>> for Error
impl<R> From<SdkError<ListActionExecutionsError, R>> for Error
source§fn from(err: SdkError<ListActionExecutionsError, R>) -> Self
fn from(err: SdkError<ListActionExecutionsError, R>) -> Self
source§impl<R> From<SdkError<ListActionTypesError, R>> for Error
impl<R> From<SdkError<ListActionTypesError, R>> for Error
source§fn from(err: SdkError<ListActionTypesError, R>) -> Self
fn from(err: SdkError<ListActionTypesError, R>) -> Self
source§impl<R> From<SdkError<ListPipelineExecutionsError, R>> for Error
impl<R> From<SdkError<ListPipelineExecutionsError, R>> for Error
source§fn from(err: SdkError<ListPipelineExecutionsError, R>) -> Self
fn from(err: SdkError<ListPipelineExecutionsError, R>) -> Self
source§impl<R> From<SdkError<ListPipelinesError, R>> for Error
impl<R> From<SdkError<ListPipelinesError, R>> for Error
source§fn from(err: SdkError<ListPipelinesError, R>) -> Self
fn from(err: SdkError<ListPipelinesError, R>) -> Self
source§impl<R> From<SdkError<ListRuleExecutionsError, R>> for Error
impl<R> From<SdkError<ListRuleExecutionsError, R>> for Error
source§fn from(err: SdkError<ListRuleExecutionsError, R>) -> Self
fn from(err: SdkError<ListRuleExecutionsError, R>) -> Self
source§impl<R> From<SdkError<ListRuleTypesError, R>> for Error
impl<R> From<SdkError<ListRuleTypesError, R>> for Error
source§fn from(err: SdkError<ListRuleTypesError, R>) -> Self
fn from(err: SdkError<ListRuleTypesError, 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<ListWebhooksError, R>> for Error
impl<R> From<SdkError<ListWebhooksError, R>> for Error
source§fn from(err: SdkError<ListWebhooksError, R>) -> Self
fn from(err: SdkError<ListWebhooksError, R>) -> Self
source§impl<R> From<SdkError<OverrideStageConditionError, R>> for Error
impl<R> From<SdkError<OverrideStageConditionError, R>> for Error
source§fn from(err: SdkError<OverrideStageConditionError, R>) -> Self
fn from(err: SdkError<OverrideStageConditionError, R>) -> Self
source§impl<R> From<SdkError<PollForJobsError, R>> for Error
impl<R> From<SdkError<PollForJobsError, R>> for Error
source§fn from(err: SdkError<PollForJobsError, R>) -> Self
fn from(err: SdkError<PollForJobsError, R>) -> Self
source§impl<R> From<SdkError<PollForThirdPartyJobsError, R>> for Error
impl<R> From<SdkError<PollForThirdPartyJobsError, R>> for Error
source§fn from(err: SdkError<PollForThirdPartyJobsError, R>) -> Self
fn from(err: SdkError<PollForThirdPartyJobsError, R>) -> Self
source§impl<R> From<SdkError<PutActionRevisionError, R>> for Error
impl<R> From<SdkError<PutActionRevisionError, R>> for Error
source§fn from(err: SdkError<PutActionRevisionError, R>) -> Self
fn from(err: SdkError<PutActionRevisionError, R>) -> Self
source§impl<R> From<SdkError<PutApprovalResultError, R>> for Error
impl<R> From<SdkError<PutApprovalResultError, R>> for Error
source§fn from(err: SdkError<PutApprovalResultError, R>) -> Self
fn from(err: SdkError<PutApprovalResultError, R>) -> Self
source§impl<R> From<SdkError<PutJobFailureResultError, R>> for Error
impl<R> From<SdkError<PutJobFailureResultError, R>> for Error
source§fn from(err: SdkError<PutJobFailureResultError, R>) -> Self
fn from(err: SdkError<PutJobFailureResultError, R>) -> Self
source§impl<R> From<SdkError<PutJobSuccessResultError, R>> for Error
impl<R> From<SdkError<PutJobSuccessResultError, R>> for Error
source§fn from(err: SdkError<PutJobSuccessResultError, R>) -> Self
fn from(err: SdkError<PutJobSuccessResultError, R>) -> Self
source§impl<R> From<SdkError<PutThirdPartyJobFailureResultError, R>> for Error
impl<R> From<SdkError<PutThirdPartyJobFailureResultError, R>> for Error
source§fn from(err: SdkError<PutThirdPartyJobFailureResultError, R>) -> Self
fn from(err: SdkError<PutThirdPartyJobFailureResultError, R>) -> Self
source§impl<R> From<SdkError<PutThirdPartyJobSuccessResultError, R>> for Error
impl<R> From<SdkError<PutThirdPartyJobSuccessResultError, R>> for Error
source§fn from(err: SdkError<PutThirdPartyJobSuccessResultError, R>) -> Self
fn from(err: SdkError<PutThirdPartyJobSuccessResultError, R>) -> Self
source§impl<R> From<SdkError<PutWebhookError, R>> for Error
impl<R> From<SdkError<PutWebhookError, R>> for Error
source§fn from(err: SdkError<PutWebhookError, R>) -> Self
fn from(err: SdkError<PutWebhookError, R>) -> Self
source§impl<R> From<SdkError<RegisterWebhookWithThirdPartyError, R>> for Error
impl<R> From<SdkError<RegisterWebhookWithThirdPartyError, R>> for Error
source§fn from(err: SdkError<RegisterWebhookWithThirdPartyError, R>) -> Self
fn from(err: SdkError<RegisterWebhookWithThirdPartyError, R>) -> Self
source§impl<R> From<SdkError<RetryStageExecutionError, R>> for Error
impl<R> From<SdkError<RetryStageExecutionError, R>> for Error
source§fn from(err: SdkError<RetryStageExecutionError, R>) -> Self
fn from(err: SdkError<RetryStageExecutionError, R>) -> Self
source§impl<R> From<SdkError<RollbackStageError, R>> for Error
impl<R> From<SdkError<RollbackStageError, R>> for Error
source§fn from(err: SdkError<RollbackStageError, R>) -> Self
fn from(err: SdkError<RollbackStageError, R>) -> Self
source§impl<R> From<SdkError<StartPipelineExecutionError, R>> for Error
impl<R> From<SdkError<StartPipelineExecutionError, R>> for Error
source§fn from(err: SdkError<StartPipelineExecutionError, R>) -> Self
fn from(err: SdkError<StartPipelineExecutionError, R>) -> Self
source§impl<R> From<SdkError<StopPipelineExecutionError, R>> for Error
impl<R> From<SdkError<StopPipelineExecutionError, R>> for Error
source§fn from(err: SdkError<StopPipelineExecutionError, R>) -> Self
fn from(err: SdkError<StopPipelineExecutionError, 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<UpdateActionTypeError, R>> for Error
impl<R> From<SdkError<UpdateActionTypeError, R>> for Error
source§fn from(err: SdkError<UpdateActionTypeError, R>) -> Self
fn from(err: SdkError<UpdateActionTypeError, R>) -> Self
source§impl<R> From<SdkError<UpdatePipelineError, R>> for Error
impl<R> From<SdkError<UpdatePipelineError, R>> for Error
source§fn from(err: SdkError<UpdatePipelineError, R>) -> Self
fn from(err: SdkError<UpdatePipelineError, R>) -> Self
source§impl From<StartPipelineExecutionError> for Error
impl From<StartPipelineExecutionError> for Error
source§fn from(err: StartPipelineExecutionError) -> Self
fn from(err: StartPipelineExecutionError) -> Self
source§impl From<StopPipelineExecutionError> for Error
impl From<StopPipelineExecutionError> for Error
source§fn from(err: StopPipelineExecutionError) -> Self
fn from(err: StopPipelineExecutionError) -> 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<UpdateActionTypeError> for Error
impl From<UpdateActionTypeError> for Error
source§fn from(err: UpdateActionTypeError) -> Self
fn from(err: UpdateActionTypeError) -> Self
source§impl From<UpdatePipelineError> for Error
impl From<UpdatePipelineError> for Error
source§fn from(err: UpdatePipelineError) -> Self
fn from(err: UpdatePipelineError) -> 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>
Returns self
with the
fg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.bright_black());
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>
Returns self
with the
fg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.bright_green());
source§fn bright_yellow(&self) -> Painted<&T>
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>
fn bright_blue(&self) -> Painted<&T>
source§fn bright_magenta(&self) -> Painted<&T>
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>
fn bright_cyan(&self) -> Painted<&T>
source§fn bright_white(&self) -> Painted<&T>
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>
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>
Returns self
with the
bg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.on_bright_black());
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>
Returns self
with the
bg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.on_bright_green());
source§fn on_bright_yellow(&self) -> Painted<&T>
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>
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>
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>
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>
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>
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 underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::Underline
.
§Example
println!("{}", value.underline());
source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::RapidBlink
.
§Example
println!("{}", value.rapid_blink());
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);