#[non_exhaustive]pub enum Error {
Show 34 variants
ActivityAlreadyExists(ActivityAlreadyExists),
ActivityDoesNotExist(ActivityDoesNotExist),
ActivityLimitExceeded(ActivityLimitExceeded),
ActivityWorkerLimitExceeded(ActivityWorkerLimitExceeded),
ConflictException(ConflictException),
ExecutionAlreadyExists(ExecutionAlreadyExists),
ExecutionDoesNotExist(ExecutionDoesNotExist),
ExecutionLimitExceeded(ExecutionLimitExceeded),
ExecutionNotRedrivable(ExecutionNotRedrivable),
InvalidArn(InvalidArn),
InvalidDefinition(InvalidDefinition),
InvalidEncryptionConfiguration(InvalidEncryptionConfiguration),
InvalidExecutionInput(InvalidExecutionInput),
InvalidLoggingConfiguration(InvalidLoggingConfiguration),
InvalidName(InvalidName),
InvalidOutput(InvalidOutput),
InvalidToken(InvalidToken),
InvalidTracingConfiguration(InvalidTracingConfiguration),
KmsAccessDeniedException(KmsAccessDeniedException),
KmsInvalidStateException(KmsInvalidStateException),
KmsThrottlingException(KmsThrottlingException),
MissingRequiredParameter(MissingRequiredParameter),
ResourceNotFound(ResourceNotFound),
ServiceQuotaExceededException(ServiceQuotaExceededException),
StateMachineAlreadyExists(StateMachineAlreadyExists),
StateMachineDeleting(StateMachineDeleting),
StateMachineDoesNotExist(StateMachineDoesNotExist),
StateMachineLimitExceeded(StateMachineLimitExceeded),
StateMachineTypeNotSupported(StateMachineTypeNotSupported),
TaskDoesNotExist(TaskDoesNotExist),
TaskTimedOut(TaskTimedOut),
TooManyTags(TooManyTags),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ActivityAlreadyExists(ActivityAlreadyExists)
Activity already exists. EncryptionConfiguration
may not be updated.
ActivityDoesNotExist(ActivityDoesNotExist)
The specified activity does not exist.
ActivityLimitExceeded(ActivityLimitExceeded)
The maximum number of activities has been reached. Existing activities must be deleted before a new activity can be created.
ActivityWorkerLimitExceeded(ActivityWorkerLimitExceeded)
The maximum number of workers concurrently polling for activity tasks has been reached.
ConflictException(ConflictException)
Updating or deleting a resource can cause an inconsistent state. This error occurs when there're concurrent requests for DeleteStateMachineVersion
, PublishStateMachineVersion
, or UpdateStateMachine
with the publish
parameter set to true
.
HTTP Status Code: 409
ExecutionAlreadyExists(ExecutionAlreadyExists)
The execution has the same name
as another execution (but a different input
).
Executions with the same name
and input
are considered idempotent.
ExecutionDoesNotExist(ExecutionDoesNotExist)
The specified execution does not exist.
ExecutionLimitExceeded(ExecutionLimitExceeded)
The maximum number of running executions has been reached. Running executions must end or be stopped before a new execution can be started.
ExecutionNotRedrivable(ExecutionNotRedrivable)
The execution Amazon Resource Name (ARN) that you specified for executionArn
cannot be redriven.
InvalidArn(InvalidArn)
The provided Amazon Resource Name (ARN) is not valid.
InvalidDefinition(InvalidDefinition)
The provided Amazon States Language definition is not valid.
InvalidEncryptionConfiguration(InvalidEncryptionConfiguration)
Received when encryptionConfiguration
is specified but various conditions exist which make the configuration invalid. For example, if type
is set to CUSTOMER_MANAGED_KMS_KEY
, but kmsKeyId
is null, or kmsDataKeyReusePeriodSeconds
is not between 60 and 900, or the KMS key is not symmetric or inactive.
InvalidExecutionInput(InvalidExecutionInput)
The provided JSON input data is not valid.
InvalidLoggingConfiguration(InvalidLoggingConfiguration)
Configuration is not valid.
InvalidName(InvalidName)
The provided name is not valid.
InvalidOutput(InvalidOutput)
The provided JSON output data is not valid.
InvalidToken(InvalidToken)
The provided token is not valid.
InvalidTracingConfiguration(InvalidTracingConfiguration)
Your tracingConfiguration
key does not match, or enabled
has not been set to true
or false
.
KmsAccessDeniedException(KmsAccessDeniedException)
Either your KMS key policy or API caller does not have the required permissions.
KmsInvalidStateException(KmsInvalidStateException)
The KMS key is not in valid state, for example: Disabled or Deleted.
KmsThrottlingException(KmsThrottlingException)
Received when KMS returns ThrottlingException
for a KMS call that Step Functions makes on behalf of the caller.
MissingRequiredParameter(MissingRequiredParameter)
Request is missing a required parameter. This error occurs if both definition
and roleArn
are not specified.
ResourceNotFound(ResourceNotFound)
Could not find the referenced resource.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The request would cause a service quota to be exceeded.
HTTP Status Code: 402
StateMachineAlreadyExists(StateMachineAlreadyExists)
A state machine with the same name but a different definition or role ARN already exists.
StateMachineDeleting(StateMachineDeleting)
The specified state machine is being deleted.
StateMachineDoesNotExist(StateMachineDoesNotExist)
The specified state machine does not exist.
StateMachineLimitExceeded(StateMachineLimitExceeded)
The maximum number of state machines has been reached. Existing state machines must be deleted before a new state machine can be created.
StateMachineTypeNotSupported(StateMachineTypeNotSupported)
State machine type is not supported.
TaskDoesNotExist(TaskDoesNotExist)
The activity does not exist.
TaskTimedOut(TaskTimedOut)
The task token has either expired or the task associated with the token has already been closed.
TooManyTags(TooManyTags)
You've exceeded the number of tags allowed for a resource. See the Limits Topic in the Step Functions Developer Guide.
ValidationException(ValidationException)
The input does not satisfy the constraints specified by an Amazon Web Services service.
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<CreateActivityError> for Error
impl From<CreateActivityError> for Error
Source§fn from(err: CreateActivityError) -> Self
fn from(err: CreateActivityError) -> Self
Source§impl From<CreateStateMachineAliasError> for Error
impl From<CreateStateMachineAliasError> for Error
Source§fn from(err: CreateStateMachineAliasError) -> Self
fn from(err: CreateStateMachineAliasError) -> Self
Source§impl From<CreateStateMachineError> for Error
impl From<CreateStateMachineError> for Error
Source§fn from(err: CreateStateMachineError) -> Self
fn from(err: CreateStateMachineError) -> Self
Source§impl From<DeleteActivityError> for Error
impl From<DeleteActivityError> for Error
Source§fn from(err: DeleteActivityError) -> Self
fn from(err: DeleteActivityError) -> Self
Source§impl From<DeleteStateMachineAliasError> for Error
impl From<DeleteStateMachineAliasError> for Error
Source§fn from(err: DeleteStateMachineAliasError) -> Self
fn from(err: DeleteStateMachineAliasError) -> Self
Source§impl From<DeleteStateMachineError> for Error
impl From<DeleteStateMachineError> for Error
Source§fn from(err: DeleteStateMachineError) -> Self
fn from(err: DeleteStateMachineError) -> Self
Source§impl From<DeleteStateMachineVersionError> for Error
impl From<DeleteStateMachineVersionError> for Error
Source§fn from(err: DeleteStateMachineVersionError) -> Self
fn from(err: DeleteStateMachineVersionError) -> Self
Source§impl From<DescribeActivityError> for Error
impl From<DescribeActivityError> for Error
Source§fn from(err: DescribeActivityError) -> Self
fn from(err: DescribeActivityError) -> Self
Source§impl From<DescribeExecutionError> for Error
impl From<DescribeExecutionError> for Error
Source§fn from(err: DescribeExecutionError) -> Self
fn from(err: DescribeExecutionError) -> Self
Source§impl From<DescribeMapRunError> for Error
impl From<DescribeMapRunError> for Error
Source§fn from(err: DescribeMapRunError) -> Self
fn from(err: DescribeMapRunError) -> Self
Source§impl From<DescribeStateMachineAliasError> for Error
impl From<DescribeStateMachineAliasError> for Error
Source§fn from(err: DescribeStateMachineAliasError) -> Self
fn from(err: DescribeStateMachineAliasError) -> Self
Source§impl From<DescribeStateMachineError> for Error
impl From<DescribeStateMachineError> for Error
Source§fn from(err: DescribeStateMachineError) -> Self
fn from(err: DescribeStateMachineError) -> Self
Source§impl From<DescribeStateMachineForExecutionError> for Error
impl From<DescribeStateMachineForExecutionError> for Error
Source§fn from(err: DescribeStateMachineForExecutionError) -> Self
fn from(err: DescribeStateMachineForExecutionError) -> Self
Source§impl From<GetActivityTaskError> for Error
impl From<GetActivityTaskError> for Error
Source§fn from(err: GetActivityTaskError) -> Self
fn from(err: GetActivityTaskError) -> Self
Source§impl From<GetExecutionHistoryError> for Error
impl From<GetExecutionHistoryError> for Error
Source§fn from(err: GetExecutionHistoryError) -> Self
fn from(err: GetExecutionHistoryError) -> Self
Source§impl From<ListActivitiesError> for Error
impl From<ListActivitiesError> for Error
Source§fn from(err: ListActivitiesError) -> Self
fn from(err: ListActivitiesError) -> Self
Source§impl From<ListExecutionsError> for Error
impl From<ListExecutionsError> for Error
Source§fn from(err: ListExecutionsError) -> Self
fn from(err: ListExecutionsError) -> Self
Source§impl From<ListMapRunsError> for Error
impl From<ListMapRunsError> for Error
Source§fn from(err: ListMapRunsError) -> Self
fn from(err: ListMapRunsError) -> Self
Source§impl From<ListStateMachineAliasesError> for Error
impl From<ListStateMachineAliasesError> for Error
Source§fn from(err: ListStateMachineAliasesError) -> Self
fn from(err: ListStateMachineAliasesError) -> Self
Source§impl From<ListStateMachineVersionsError> for Error
impl From<ListStateMachineVersionsError> for Error
Source§fn from(err: ListStateMachineVersionsError) -> Self
fn from(err: ListStateMachineVersionsError) -> Self
Source§impl From<ListStateMachinesError> for Error
impl From<ListStateMachinesError> for Error
Source§fn from(err: ListStateMachinesError) -> Self
fn from(err: ListStateMachinesError) -> 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<PublishStateMachineVersionError> for Error
impl From<PublishStateMachineVersionError> for Error
Source§fn from(err: PublishStateMachineVersionError) -> Self
fn from(err: PublishStateMachineVersionError) -> Self
Source§impl From<RedriveExecutionError> for Error
impl From<RedriveExecutionError> for Error
Source§fn from(err: RedriveExecutionError) -> Self
fn from(err: RedriveExecutionError) -> Self
Source§impl<R> From<SdkError<CreateActivityError, R>> for Error
impl<R> From<SdkError<CreateActivityError, R>> for Error
Source§fn from(err: SdkError<CreateActivityError, R>) -> Self
fn from(err: SdkError<CreateActivityError, R>) -> Self
Source§impl<R> From<SdkError<CreateStateMachineAliasError, R>> for Error
impl<R> From<SdkError<CreateStateMachineAliasError, R>> for Error
Source§fn from(err: SdkError<CreateStateMachineAliasError, R>) -> Self
fn from(err: SdkError<CreateStateMachineAliasError, R>) -> Self
Source§impl<R> From<SdkError<CreateStateMachineError, R>> for Error
impl<R> From<SdkError<CreateStateMachineError, R>> for Error
Source§fn from(err: SdkError<CreateStateMachineError, R>) -> Self
fn from(err: SdkError<CreateStateMachineError, R>) -> Self
Source§impl<R> From<SdkError<DeleteActivityError, R>> for Error
impl<R> From<SdkError<DeleteActivityError, R>> for Error
Source§fn from(err: SdkError<DeleteActivityError, R>) -> Self
fn from(err: SdkError<DeleteActivityError, R>) -> Self
Source§impl<R> From<SdkError<DeleteStateMachineAliasError, R>> for Error
impl<R> From<SdkError<DeleteStateMachineAliasError, R>> for Error
Source§fn from(err: SdkError<DeleteStateMachineAliasError, R>) -> Self
fn from(err: SdkError<DeleteStateMachineAliasError, R>) -> Self
Source§impl<R> From<SdkError<DeleteStateMachineError, R>> for Error
impl<R> From<SdkError<DeleteStateMachineError, R>> for Error
Source§fn from(err: SdkError<DeleteStateMachineError, R>) -> Self
fn from(err: SdkError<DeleteStateMachineError, R>) -> Self
Source§impl<R> From<SdkError<DeleteStateMachineVersionError, R>> for Error
impl<R> From<SdkError<DeleteStateMachineVersionError, R>> for Error
Source§fn from(err: SdkError<DeleteStateMachineVersionError, R>) -> Self
fn from(err: SdkError<DeleteStateMachineVersionError, R>) -> Self
Source§impl<R> From<SdkError<DescribeActivityError, R>> for Error
impl<R> From<SdkError<DescribeActivityError, R>> for Error
Source§fn from(err: SdkError<DescribeActivityError, R>) -> Self
fn from(err: SdkError<DescribeActivityError, R>) -> Self
Source§impl<R> From<SdkError<DescribeExecutionError, R>> for Error
impl<R> From<SdkError<DescribeExecutionError, R>> for Error
Source§fn from(err: SdkError<DescribeExecutionError, R>) -> Self
fn from(err: SdkError<DescribeExecutionError, R>) -> Self
Source§impl<R> From<SdkError<DescribeMapRunError, R>> for Error
impl<R> From<SdkError<DescribeMapRunError, R>> for Error
Source§fn from(err: SdkError<DescribeMapRunError, R>) -> Self
fn from(err: SdkError<DescribeMapRunError, R>) -> Self
Source§impl<R> From<SdkError<DescribeStateMachineAliasError, R>> for Error
impl<R> From<SdkError<DescribeStateMachineAliasError, R>> for Error
Source§fn from(err: SdkError<DescribeStateMachineAliasError, R>) -> Self
fn from(err: SdkError<DescribeStateMachineAliasError, R>) -> Self
Source§impl<R> From<SdkError<DescribeStateMachineError, R>> for Error
impl<R> From<SdkError<DescribeStateMachineError, R>> for Error
Source§fn from(err: SdkError<DescribeStateMachineError, R>) -> Self
fn from(err: SdkError<DescribeStateMachineError, R>) -> Self
Source§impl<R> From<SdkError<DescribeStateMachineForExecutionError, R>> for Error
impl<R> From<SdkError<DescribeStateMachineForExecutionError, R>> for Error
Source§fn from(err: SdkError<DescribeStateMachineForExecutionError, R>) -> Self
fn from(err: SdkError<DescribeStateMachineForExecutionError, R>) -> Self
Source§impl<R> From<SdkError<GetActivityTaskError, R>> for Error
impl<R> From<SdkError<GetActivityTaskError, R>> for Error
Source§fn from(err: SdkError<GetActivityTaskError, R>) -> Self
fn from(err: SdkError<GetActivityTaskError, R>) -> Self
Source§impl<R> From<SdkError<GetExecutionHistoryError, R>> for Error
impl<R> From<SdkError<GetExecutionHistoryError, R>> for Error
Source§fn from(err: SdkError<GetExecutionHistoryError, R>) -> Self
fn from(err: SdkError<GetExecutionHistoryError, R>) -> Self
Source§impl<R> From<SdkError<ListActivitiesError, R>> for Error
impl<R> From<SdkError<ListActivitiesError, R>> for Error
Source§fn from(err: SdkError<ListActivitiesError, R>) -> Self
fn from(err: SdkError<ListActivitiesError, R>) -> Self
Source§impl<R> From<SdkError<ListExecutionsError, R>> for Error
impl<R> From<SdkError<ListExecutionsError, R>> for Error
Source§fn from(err: SdkError<ListExecutionsError, R>) -> Self
fn from(err: SdkError<ListExecutionsError, R>) -> Self
Source§impl<R> From<SdkError<ListMapRunsError, R>> for Error
impl<R> From<SdkError<ListMapRunsError, R>> for Error
Source§fn from(err: SdkError<ListMapRunsError, R>) -> Self
fn from(err: SdkError<ListMapRunsError, R>) -> Self
Source§impl<R> From<SdkError<ListStateMachineAliasesError, R>> for Error
impl<R> From<SdkError<ListStateMachineAliasesError, R>> for Error
Source§fn from(err: SdkError<ListStateMachineAliasesError, R>) -> Self
fn from(err: SdkError<ListStateMachineAliasesError, R>) -> Self
Source§impl<R> From<SdkError<ListStateMachineVersionsError, R>> for Error
impl<R> From<SdkError<ListStateMachineVersionsError, R>> for Error
Source§fn from(err: SdkError<ListStateMachineVersionsError, R>) -> Self
fn from(err: SdkError<ListStateMachineVersionsError, R>) -> Self
Source§impl<R> From<SdkError<ListStateMachinesError, R>> for Error
impl<R> From<SdkError<ListStateMachinesError, R>> for Error
Source§fn from(err: SdkError<ListStateMachinesError, R>) -> Self
fn from(err: SdkError<ListStateMachinesError, 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<PublishStateMachineVersionError, R>> for Error
impl<R> From<SdkError<PublishStateMachineVersionError, R>> for Error
Source§fn from(err: SdkError<PublishStateMachineVersionError, R>) -> Self
fn from(err: SdkError<PublishStateMachineVersionError, R>) -> Self
Source§impl<R> From<SdkError<RedriveExecutionError, R>> for Error
impl<R> From<SdkError<RedriveExecutionError, R>> for Error
Source§fn from(err: SdkError<RedriveExecutionError, R>) -> Self
fn from(err: SdkError<RedriveExecutionError, R>) -> Self
Source§impl<R> From<SdkError<SendTaskFailureError, R>> for Error
impl<R> From<SdkError<SendTaskFailureError, R>> for Error
Source§fn from(err: SdkError<SendTaskFailureError, R>) -> Self
fn from(err: SdkError<SendTaskFailureError, R>) -> Self
Source§impl<R> From<SdkError<SendTaskHeartbeatError, R>> for Error
impl<R> From<SdkError<SendTaskHeartbeatError, R>> for Error
Source§fn from(err: SdkError<SendTaskHeartbeatError, R>) -> Self
fn from(err: SdkError<SendTaskHeartbeatError, R>) -> Self
Source§impl<R> From<SdkError<SendTaskSuccessError, R>> for Error
impl<R> From<SdkError<SendTaskSuccessError, R>> for Error
Source§fn from(err: SdkError<SendTaskSuccessError, R>) -> Self
fn from(err: SdkError<SendTaskSuccessError, R>) -> Self
Source§impl<R> From<SdkError<StartExecutionError, R>> for Error
impl<R> From<SdkError<StartExecutionError, R>> for Error
Source§fn from(err: SdkError<StartExecutionError, R>) -> Self
fn from(err: SdkError<StartExecutionError, R>) -> Self
Source§impl<R> From<SdkError<StartSyncExecutionError, R>> for Error
impl<R> From<SdkError<StartSyncExecutionError, R>> for Error
Source§fn from(err: SdkError<StartSyncExecutionError, R>) -> Self
fn from(err: SdkError<StartSyncExecutionError, R>) -> Self
Source§impl<R> From<SdkError<StopExecutionError, R>> for Error
impl<R> From<SdkError<StopExecutionError, R>> for Error
Source§fn from(err: SdkError<StopExecutionError, R>) -> Self
fn from(err: SdkError<StopExecutionError, 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<TestStateError, R>> for Error
impl<R> From<SdkError<TestStateError, R>> for Error
Source§fn from(err: SdkError<TestStateError, R>) -> Self
fn from(err: SdkError<TestStateError, 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<UpdateMapRunError, R>> for Error
impl<R> From<SdkError<UpdateMapRunError, R>> for Error
Source§fn from(err: SdkError<UpdateMapRunError, R>) -> Self
fn from(err: SdkError<UpdateMapRunError, R>) -> Self
Source§impl<R> From<SdkError<UpdateStateMachineAliasError, R>> for Error
impl<R> From<SdkError<UpdateStateMachineAliasError, R>> for Error
Source§fn from(err: SdkError<UpdateStateMachineAliasError, R>) -> Self
fn from(err: SdkError<UpdateStateMachineAliasError, R>) -> Self
Source§impl<R> From<SdkError<UpdateStateMachineError, R>> for Error
impl<R> From<SdkError<UpdateStateMachineError, R>> for Error
Source§fn from(err: SdkError<UpdateStateMachineError, R>) -> Self
fn from(err: SdkError<UpdateStateMachineError, R>) -> Self
Source§impl<R> From<SdkError<ValidateStateMachineDefinitionError, R>> for Error
impl<R> From<SdkError<ValidateStateMachineDefinitionError, R>> for Error
Source§fn from(err: SdkError<ValidateStateMachineDefinitionError, R>) -> Self
fn from(err: SdkError<ValidateStateMachineDefinitionError, R>) -> Self
Source§impl From<SendTaskFailureError> for Error
impl From<SendTaskFailureError> for Error
Source§fn from(err: SendTaskFailureError) -> Self
fn from(err: SendTaskFailureError) -> Self
Source§impl From<SendTaskHeartbeatError> for Error
impl From<SendTaskHeartbeatError> for Error
Source§fn from(err: SendTaskHeartbeatError) -> Self
fn from(err: SendTaskHeartbeatError) -> Self
Source§impl From<SendTaskSuccessError> for Error
impl From<SendTaskSuccessError> for Error
Source§fn from(err: SendTaskSuccessError) -> Self
fn from(err: SendTaskSuccessError) -> Self
Source§impl From<StartExecutionError> for Error
impl From<StartExecutionError> for Error
Source§fn from(err: StartExecutionError) -> Self
fn from(err: StartExecutionError) -> Self
Source§impl From<StartSyncExecutionError> for Error
impl From<StartSyncExecutionError> for Error
Source§fn from(err: StartSyncExecutionError) -> Self
fn from(err: StartSyncExecutionError) -> Self
Source§impl From<StopExecutionError> for Error
impl From<StopExecutionError> for Error
Source§fn from(err: StopExecutionError) -> Self
fn from(err: StopExecutionError) -> 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<TestStateError> for Error
impl From<TestStateError> for Error
Source§fn from(err: TestStateError) -> Self
fn from(err: TestStateError) -> 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<UpdateMapRunError> for Error
impl From<UpdateMapRunError> for Error
Source§fn from(err: UpdateMapRunError) -> Self
fn from(err: UpdateMapRunError) -> Self
Source§impl From<UpdateStateMachineAliasError> for Error
impl From<UpdateStateMachineAliasError> for Error
Source§fn from(err: UpdateStateMachineAliasError) -> Self
fn from(err: UpdateStateMachineAliasError) -> Self
Source§impl From<UpdateStateMachineError> for Error
impl From<UpdateStateMachineError> for Error
Source§fn from(err: UpdateStateMachineError) -> Self
fn from(err: UpdateStateMachineError) -> Self
Source§impl From<ValidateStateMachineDefinitionError> for Error
impl From<ValidateStateMachineDefinitionError> for Error
Source§fn from(err: ValidateStateMachineDefinitionError) -> Self
fn from(err: ValidateStateMachineDefinitionError) -> 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);