aws_sdk_codepipeline

Enum Error

source
#[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
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.
§

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)

👎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.81.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.81.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<AcknowledgeJobError> for Error

source§

fn from(err: AcknowledgeJobError) -> Self

Converts to this type from the input type.
source§

impl From<AcknowledgeThirdPartyJobError> for Error

source§

fn from(err: AcknowledgeThirdPartyJobError) -> Self

Converts to this type from the input type.
source§

impl From<BuildError> for Error

source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
source§

impl From<CreateCustomActionTypeError> for Error

source§

fn from(err: CreateCustomActionTypeError) -> Self

Converts to this type from the input type.
source§

impl From<CreatePipelineError> for Error

source§

fn from(err: CreatePipelineError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteCustomActionTypeError> for Error

source§

fn from(err: DeleteCustomActionTypeError) -> Self

Converts to this type from the input type.
source§

impl From<DeletePipelineError> for Error

source§

fn from(err: DeletePipelineError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteWebhookError> for Error

source§

fn from(err: DeleteWebhookError) -> Self

Converts to this type from the input type.
source§

impl From<DeregisterWebhookWithThirdPartyError> for Error

source§

fn from(err: DeregisterWebhookWithThirdPartyError) -> Self

Converts to this type from the input type.
source§

impl From<DisableStageTransitionError> for Error

source§

fn from(err: DisableStageTransitionError) -> Self

Converts to this type from the input type.
source§

impl From<EnableStageTransitionError> for Error

source§

fn from(err: EnableStageTransitionError) -> Self

Converts to this type from the input type.
source§

impl From<GetActionTypeError> for Error

source§

fn from(err: GetActionTypeError) -> Self

Converts to this type from the input type.
source§

impl From<GetJobDetailsError> for Error

source§

fn from(err: GetJobDetailsError) -> Self

Converts to this type from the input type.
source§

impl From<GetPipelineError> for Error

source§

fn from(err: GetPipelineError) -> Self

Converts to this type from the input type.
source§

impl From<GetPipelineExecutionError> for Error

source§

fn from(err: GetPipelineExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<GetPipelineStateError> for Error

source§

fn from(err: GetPipelineStateError) -> Self

Converts to this type from the input type.
source§

impl From<GetThirdPartyJobDetailsError> for Error

source§

fn from(err: GetThirdPartyJobDetailsError) -> Self

Converts to this type from the input type.
source§

impl From<ListActionExecutionsError> for Error

source§

fn from(err: ListActionExecutionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListActionTypesError> for Error

source§

fn from(err: ListActionTypesError) -> Self

Converts to this type from the input type.
source§

impl From<ListPipelineExecutionsError> for Error

source§

fn from(err: ListPipelineExecutionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListPipelinesError> for Error

source§

fn from(err: ListPipelinesError) -> Self

Converts to this type from the input type.
source§

impl From<ListRuleExecutionsError> for Error

source§

fn from(err: ListRuleExecutionsError) -> Self

Converts to this type from the input type.
source§

impl From<ListRuleTypesError> for Error

source§

fn from(err: ListRuleTypesError) -> 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<ListWebhooksError> for Error

source§

fn from(err: ListWebhooksError) -> Self

Converts to this type from the input type.
source§

impl From<OverrideStageConditionError> for Error

source§

fn from(err: OverrideStageConditionError) -> Self

Converts to this type from the input type.
source§

impl From<PollForJobsError> for Error

source§

fn from(err: PollForJobsError) -> Self

Converts to this type from the input type.
source§

impl From<PollForThirdPartyJobsError> for Error

source§

fn from(err: PollForThirdPartyJobsError) -> Self

Converts to this type from the input type.
source§

impl From<PutActionRevisionError> for Error

source§

fn from(err: PutActionRevisionError) -> Self

Converts to this type from the input type.
source§

impl From<PutApprovalResultError> for Error

source§

fn from(err: PutApprovalResultError) -> Self

Converts to this type from the input type.
source§

impl From<PutJobFailureResultError> for Error

source§

fn from(err: PutJobFailureResultError) -> Self

Converts to this type from the input type.
source§

impl From<PutJobSuccessResultError> for Error

source§

fn from(err: PutJobSuccessResultError) -> Self

Converts to this type from the input type.
source§

impl From<PutThirdPartyJobFailureResultError> for Error

source§

fn from(err: PutThirdPartyJobFailureResultError) -> Self

Converts to this type from the input type.
source§

impl From<PutThirdPartyJobSuccessResultError> for Error

source§

fn from(err: PutThirdPartyJobSuccessResultError) -> Self

Converts to this type from the input type.
source§

impl From<PutWebhookError> for Error

source§

fn from(err: PutWebhookError) -> Self

Converts to this type from the input type.
source§

impl From<RegisterWebhookWithThirdPartyError> for Error

source§

fn from(err: RegisterWebhookWithThirdPartyError) -> Self

Converts to this type from the input type.
source§

impl From<RetryStageExecutionError> for Error

source§

fn from(err: RetryStageExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<RollbackStageError> for Error

source§

fn from(err: RollbackStageError) -> Self

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

fn from(err: SdkError<ListRuleTypesError, 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<ListWebhooksError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

fn from(err: SdkError<StopPipelineExecutionError, 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<UpdateActionTypeError, R>> for Error
where R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

impl From<StartPipelineExecutionError> for Error

source§

fn from(err: StartPipelineExecutionError) -> Self

Converts to this type from the input type.
source§

impl From<StopPipelineExecutionError> for Error

source§

fn from(err: StopPipelineExecutionError) -> 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<UpdateActionTypeError> for Error

source§

fn from(err: UpdateActionTypeError) -> Self

Converts to this type from the input type.
source§

impl From<UpdatePipelineError> for Error

source§

fn from(err: UpdatePipelineError) -> 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§

default 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