#[non_exhaustive]pub enum Error {
DefaultUndefinedFault(DefaultUndefinedFault),
DomainAlreadyExistsFault(DomainAlreadyExistsFault),
DomainDeprecatedFault(DomainDeprecatedFault),
LimitExceededFault(LimitExceededFault),
OperationNotPermittedFault(OperationNotPermittedFault),
TooManyTagsFault(TooManyTagsFault),
TypeAlreadyExistsFault(TypeAlreadyExistsFault),
TypeDeprecatedFault(TypeDeprecatedFault),
TypeNotDeprecatedFault(TypeNotDeprecatedFault),
UnknownResourceFault(UnknownResourceFault),
WorkflowExecutionAlreadyStartedFault(WorkflowExecutionAlreadyStartedFault),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DefaultUndefinedFault(DefaultUndefinedFault)
The StartWorkflowExecution
API action was called without the required parameters set.
Some workflow execution parameters, such as the decision taskList
, must be set to start the execution. However, these parameters might have been set as defaults when the workflow type was registered. In this case, you can omit these parameters from the StartWorkflowExecution
call and Amazon SWF uses the values defined in the workflow type.
If these parameters aren't set and no default parameters were defined in the workflow type, this error is displayed.
DomainAlreadyExistsFault(DomainAlreadyExistsFault)
Returned if the domain already exists. You may get this fault if you are registering a domain that is either already registered or deprecated, or if you undeprecate a domain that is currently registered.
DomainDeprecatedFault(DomainDeprecatedFault)
Returned when the specified domain has been deprecated.
LimitExceededFault(LimitExceededFault)
Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.
OperationNotPermittedFault(OperationNotPermittedFault)
Returned when the caller doesn't have sufficient permissions to invoke the action.
TooManyTagsFault(TooManyTagsFault)
You've exceeded the number of tags allowed for a domain.
TypeAlreadyExistsFault(TypeAlreadyExistsFault)
Returned if the type already exists in the specified domain. You may get this fault if you are registering a type that is either already registered or deprecated, or if you undeprecate a type that is currently registered.
TypeDeprecatedFault(TypeDeprecatedFault)
Returned when the specified activity or workflow type was already deprecated.
TypeNotDeprecatedFault(TypeNotDeprecatedFault)
Returned when the resource type has not been deprecated.
UnknownResourceFault(UnknownResourceFault)
Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.
WorkflowExecutionAlreadyStartedFault(WorkflowExecutionAlreadyStartedFault)
Returned by StartWorkflowExecution
when an open execution with the same workflowId is already running in the specified domain.
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<CountClosedWorkflowExecutionsError> for Error
impl From<CountClosedWorkflowExecutionsError> for Error
Source§fn from(err: CountClosedWorkflowExecutionsError) -> Self
fn from(err: CountClosedWorkflowExecutionsError) -> Self
Source§impl From<CountOpenWorkflowExecutionsError> for Error
impl From<CountOpenWorkflowExecutionsError> for Error
Source§fn from(err: CountOpenWorkflowExecutionsError) -> Self
fn from(err: CountOpenWorkflowExecutionsError) -> Self
Source§impl From<CountPendingActivityTasksError> for Error
impl From<CountPendingActivityTasksError> for Error
Source§fn from(err: CountPendingActivityTasksError) -> Self
fn from(err: CountPendingActivityTasksError) -> Self
Source§impl From<CountPendingDecisionTasksError> for Error
impl From<CountPendingDecisionTasksError> for Error
Source§fn from(err: CountPendingDecisionTasksError) -> Self
fn from(err: CountPendingDecisionTasksError) -> Self
Source§impl From<DeleteActivityTypeError> for Error
impl From<DeleteActivityTypeError> for Error
Source§fn from(err: DeleteActivityTypeError) -> Self
fn from(err: DeleteActivityTypeError) -> Self
Source§impl From<DeleteWorkflowTypeError> for Error
impl From<DeleteWorkflowTypeError> for Error
Source§fn from(err: DeleteWorkflowTypeError) -> Self
fn from(err: DeleteWorkflowTypeError) -> Self
Source§impl From<DeprecateActivityTypeError> for Error
impl From<DeprecateActivityTypeError> for Error
Source§fn from(err: DeprecateActivityTypeError) -> Self
fn from(err: DeprecateActivityTypeError) -> Self
Source§impl From<DeprecateDomainError> for Error
impl From<DeprecateDomainError> for Error
Source§fn from(err: DeprecateDomainError) -> Self
fn from(err: DeprecateDomainError) -> Self
Source§impl From<DeprecateWorkflowTypeError> for Error
impl From<DeprecateWorkflowTypeError> for Error
Source§fn from(err: DeprecateWorkflowTypeError) -> Self
fn from(err: DeprecateWorkflowTypeError) -> Self
Source§impl From<DescribeActivityTypeError> for Error
impl From<DescribeActivityTypeError> for Error
Source§fn from(err: DescribeActivityTypeError) -> Self
fn from(err: DescribeActivityTypeError) -> Self
Source§impl From<DescribeDomainError> for Error
impl From<DescribeDomainError> for Error
Source§fn from(err: DescribeDomainError) -> Self
fn from(err: DescribeDomainError) -> Self
Source§impl From<DescribeWorkflowExecutionError> for Error
impl From<DescribeWorkflowExecutionError> for Error
Source§fn from(err: DescribeWorkflowExecutionError) -> Self
fn from(err: DescribeWorkflowExecutionError) -> Self
Source§impl From<DescribeWorkflowTypeError> for Error
impl From<DescribeWorkflowTypeError> for Error
Source§fn from(err: DescribeWorkflowTypeError) -> Self
fn from(err: DescribeWorkflowTypeError) -> Self
Source§impl From<GetWorkflowExecutionHistoryError> for Error
impl From<GetWorkflowExecutionHistoryError> for Error
Source§fn from(err: GetWorkflowExecutionHistoryError) -> Self
fn from(err: GetWorkflowExecutionHistoryError) -> Self
Source§impl From<ListActivityTypesError> for Error
impl From<ListActivityTypesError> for Error
Source§fn from(err: ListActivityTypesError) -> Self
fn from(err: ListActivityTypesError) -> Self
Source§impl From<ListClosedWorkflowExecutionsError> for Error
impl From<ListClosedWorkflowExecutionsError> for Error
Source§fn from(err: ListClosedWorkflowExecutionsError) -> Self
fn from(err: ListClosedWorkflowExecutionsError) -> Self
Source§impl From<ListDomainsError> for Error
impl From<ListDomainsError> for Error
Source§fn from(err: ListDomainsError) -> Self
fn from(err: ListDomainsError) -> Self
Source§impl From<ListOpenWorkflowExecutionsError> for Error
impl From<ListOpenWorkflowExecutionsError> for Error
Source§fn from(err: ListOpenWorkflowExecutionsError) -> Self
fn from(err: ListOpenWorkflowExecutionsError) -> 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<ListWorkflowTypesError> for Error
impl From<ListWorkflowTypesError> for Error
Source§fn from(err: ListWorkflowTypesError) -> Self
fn from(err: ListWorkflowTypesError) -> Self
Source§impl From<PollForActivityTaskError> for Error
impl From<PollForActivityTaskError> for Error
Source§fn from(err: PollForActivityTaskError) -> Self
fn from(err: PollForActivityTaskError) -> Self
Source§impl From<PollForDecisionTaskError> for Error
impl From<PollForDecisionTaskError> for Error
Source§fn from(err: PollForDecisionTaskError) -> Self
fn from(err: PollForDecisionTaskError) -> Self
Source§impl From<RecordActivityTaskHeartbeatError> for Error
impl From<RecordActivityTaskHeartbeatError> for Error
Source§fn from(err: RecordActivityTaskHeartbeatError) -> Self
fn from(err: RecordActivityTaskHeartbeatError) -> Self
Source§impl From<RegisterActivityTypeError> for Error
impl From<RegisterActivityTypeError> for Error
Source§fn from(err: RegisterActivityTypeError) -> Self
fn from(err: RegisterActivityTypeError) -> Self
Source§impl From<RegisterDomainError> for Error
impl From<RegisterDomainError> for Error
Source§fn from(err: RegisterDomainError) -> Self
fn from(err: RegisterDomainError) -> Self
Source§impl From<RegisterWorkflowTypeError> for Error
impl From<RegisterWorkflowTypeError> for Error
Source§fn from(err: RegisterWorkflowTypeError) -> Self
fn from(err: RegisterWorkflowTypeError) -> Self
Source§impl From<RequestCancelWorkflowExecutionError> for Error
impl From<RequestCancelWorkflowExecutionError> for Error
Source§fn from(err: RequestCancelWorkflowExecutionError) -> Self
fn from(err: RequestCancelWorkflowExecutionError) -> Self
Source§impl From<RespondActivityTaskCanceledError> for Error
impl From<RespondActivityTaskCanceledError> for Error
Source§fn from(err: RespondActivityTaskCanceledError) -> Self
fn from(err: RespondActivityTaskCanceledError) -> Self
Source§impl From<RespondActivityTaskCompletedError> for Error
impl From<RespondActivityTaskCompletedError> for Error
Source§fn from(err: RespondActivityTaskCompletedError) -> Self
fn from(err: RespondActivityTaskCompletedError) -> Self
Source§impl From<RespondActivityTaskFailedError> for Error
impl From<RespondActivityTaskFailedError> for Error
Source§fn from(err: RespondActivityTaskFailedError) -> Self
fn from(err: RespondActivityTaskFailedError) -> Self
Source§impl From<RespondDecisionTaskCompletedError> for Error
impl From<RespondDecisionTaskCompletedError> for Error
Source§fn from(err: RespondDecisionTaskCompletedError) -> Self
fn from(err: RespondDecisionTaskCompletedError) -> Self
Source§impl<R> From<SdkError<CountClosedWorkflowExecutionsError, R>> for Error
impl<R> From<SdkError<CountClosedWorkflowExecutionsError, R>> for Error
Source§fn from(err: SdkError<CountClosedWorkflowExecutionsError, R>) -> Self
fn from(err: SdkError<CountClosedWorkflowExecutionsError, R>) -> Self
Source§impl<R> From<SdkError<CountOpenWorkflowExecutionsError, R>> for Error
impl<R> From<SdkError<CountOpenWorkflowExecutionsError, R>> for Error
Source§fn from(err: SdkError<CountOpenWorkflowExecutionsError, R>) -> Self
fn from(err: SdkError<CountOpenWorkflowExecutionsError, R>) -> Self
Source§impl<R> From<SdkError<CountPendingActivityTasksError, R>> for Error
impl<R> From<SdkError<CountPendingActivityTasksError, R>> for Error
Source§fn from(err: SdkError<CountPendingActivityTasksError, R>) -> Self
fn from(err: SdkError<CountPendingActivityTasksError, R>) -> Self
Source§impl<R> From<SdkError<CountPendingDecisionTasksError, R>> for Error
impl<R> From<SdkError<CountPendingDecisionTasksError, R>> for Error
Source§fn from(err: SdkError<CountPendingDecisionTasksError, R>) -> Self
fn from(err: SdkError<CountPendingDecisionTasksError, R>) -> Self
Source§impl<R> From<SdkError<DeleteActivityTypeError, R>> for Error
impl<R> From<SdkError<DeleteActivityTypeError, R>> for Error
Source§fn from(err: SdkError<DeleteActivityTypeError, R>) -> Self
fn from(err: SdkError<DeleteActivityTypeError, R>) -> Self
Source§impl<R> From<SdkError<DeleteWorkflowTypeError, R>> for Error
impl<R> From<SdkError<DeleteWorkflowTypeError, R>> for Error
Source§fn from(err: SdkError<DeleteWorkflowTypeError, R>) -> Self
fn from(err: SdkError<DeleteWorkflowTypeError, R>) -> Self
Source§impl<R> From<SdkError<DeprecateActivityTypeError, R>> for Error
impl<R> From<SdkError<DeprecateActivityTypeError, R>> for Error
Source§fn from(err: SdkError<DeprecateActivityTypeError, R>) -> Self
fn from(err: SdkError<DeprecateActivityTypeError, R>) -> Self
Source§impl<R> From<SdkError<DeprecateDomainError, R>> for Error
impl<R> From<SdkError<DeprecateDomainError, R>> for Error
Source§fn from(err: SdkError<DeprecateDomainError, R>) -> Self
fn from(err: SdkError<DeprecateDomainError, R>) -> Self
Source§impl<R> From<SdkError<DeprecateWorkflowTypeError, R>> for Error
impl<R> From<SdkError<DeprecateWorkflowTypeError, R>> for Error
Source§fn from(err: SdkError<DeprecateWorkflowTypeError, R>) -> Self
fn from(err: SdkError<DeprecateWorkflowTypeError, R>) -> Self
Source§impl<R> From<SdkError<DescribeActivityTypeError, R>> for Error
impl<R> From<SdkError<DescribeActivityTypeError, R>> for Error
Source§fn from(err: SdkError<DescribeActivityTypeError, R>) -> Self
fn from(err: SdkError<DescribeActivityTypeError, R>) -> Self
Source§impl<R> From<SdkError<DescribeDomainError, R>> for Error
impl<R> From<SdkError<DescribeDomainError, R>> for Error
Source§fn from(err: SdkError<DescribeDomainError, R>) -> Self
fn from(err: SdkError<DescribeDomainError, R>) -> Self
Source§impl<R> From<SdkError<DescribeWorkflowExecutionError, R>> for Error
impl<R> From<SdkError<DescribeWorkflowExecutionError, R>> for Error
Source§fn from(err: SdkError<DescribeWorkflowExecutionError, R>) -> Self
fn from(err: SdkError<DescribeWorkflowExecutionError, R>) -> Self
Source§impl<R> From<SdkError<DescribeWorkflowTypeError, R>> for Error
impl<R> From<SdkError<DescribeWorkflowTypeError, R>> for Error
Source§fn from(err: SdkError<DescribeWorkflowTypeError, R>) -> Self
fn from(err: SdkError<DescribeWorkflowTypeError, R>) -> Self
Source§impl<R> From<SdkError<GetWorkflowExecutionHistoryError, R>> for Error
impl<R> From<SdkError<GetWorkflowExecutionHistoryError, R>> for Error
Source§fn from(err: SdkError<GetWorkflowExecutionHistoryError, R>) -> Self
fn from(err: SdkError<GetWorkflowExecutionHistoryError, R>) -> Self
Source§impl<R> From<SdkError<ListActivityTypesError, R>> for Error
impl<R> From<SdkError<ListActivityTypesError, R>> for Error
Source§fn from(err: SdkError<ListActivityTypesError, R>) -> Self
fn from(err: SdkError<ListActivityTypesError, R>) -> Self
Source§impl<R> From<SdkError<ListClosedWorkflowExecutionsError, R>> for Error
impl<R> From<SdkError<ListClosedWorkflowExecutionsError, R>> for Error
Source§fn from(err: SdkError<ListClosedWorkflowExecutionsError, R>) -> Self
fn from(err: SdkError<ListClosedWorkflowExecutionsError, R>) -> Self
Source§impl<R> From<SdkError<ListDomainsError, R>> for Error
impl<R> From<SdkError<ListDomainsError, R>> for Error
Source§fn from(err: SdkError<ListDomainsError, R>) -> Self
fn from(err: SdkError<ListDomainsError, R>) -> Self
Source§impl<R> From<SdkError<ListOpenWorkflowExecutionsError, R>> for Error
impl<R> From<SdkError<ListOpenWorkflowExecutionsError, R>> for Error
Source§fn from(err: SdkError<ListOpenWorkflowExecutionsError, R>) -> Self
fn from(err: SdkError<ListOpenWorkflowExecutionsError, 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<ListWorkflowTypesError, R>> for Error
impl<R> From<SdkError<ListWorkflowTypesError, R>> for Error
Source§fn from(err: SdkError<ListWorkflowTypesError, R>) -> Self
fn from(err: SdkError<ListWorkflowTypesError, R>) -> Self
Source§impl<R> From<SdkError<PollForActivityTaskError, R>> for Error
impl<R> From<SdkError<PollForActivityTaskError, R>> for Error
Source§fn from(err: SdkError<PollForActivityTaskError, R>) -> Self
fn from(err: SdkError<PollForActivityTaskError, R>) -> Self
Source§impl<R> From<SdkError<PollForDecisionTaskError, R>> for Error
impl<R> From<SdkError<PollForDecisionTaskError, R>> for Error
Source§fn from(err: SdkError<PollForDecisionTaskError, R>) -> Self
fn from(err: SdkError<PollForDecisionTaskError, R>) -> Self
Source§impl<R> From<SdkError<RecordActivityTaskHeartbeatError, R>> for Error
impl<R> From<SdkError<RecordActivityTaskHeartbeatError, R>> for Error
Source§fn from(err: SdkError<RecordActivityTaskHeartbeatError, R>) -> Self
fn from(err: SdkError<RecordActivityTaskHeartbeatError, R>) -> Self
Source§impl<R> From<SdkError<RegisterActivityTypeError, R>> for Error
impl<R> From<SdkError<RegisterActivityTypeError, R>> for Error
Source§fn from(err: SdkError<RegisterActivityTypeError, R>) -> Self
fn from(err: SdkError<RegisterActivityTypeError, R>) -> Self
Source§impl<R> From<SdkError<RegisterDomainError, R>> for Error
impl<R> From<SdkError<RegisterDomainError, R>> for Error
Source§fn from(err: SdkError<RegisterDomainError, R>) -> Self
fn from(err: SdkError<RegisterDomainError, R>) -> Self
Source§impl<R> From<SdkError<RegisterWorkflowTypeError, R>> for Error
impl<R> From<SdkError<RegisterWorkflowTypeError, R>> for Error
Source§fn from(err: SdkError<RegisterWorkflowTypeError, R>) -> Self
fn from(err: SdkError<RegisterWorkflowTypeError, R>) -> Self
Source§impl<R> From<SdkError<RequestCancelWorkflowExecutionError, R>> for Error
impl<R> From<SdkError<RequestCancelWorkflowExecutionError, R>> for Error
Source§fn from(err: SdkError<RequestCancelWorkflowExecutionError, R>) -> Self
fn from(err: SdkError<RequestCancelWorkflowExecutionError, R>) -> Self
Source§impl<R> From<SdkError<RespondActivityTaskCanceledError, R>> for Error
impl<R> From<SdkError<RespondActivityTaskCanceledError, R>> for Error
Source§fn from(err: SdkError<RespondActivityTaskCanceledError, R>) -> Self
fn from(err: SdkError<RespondActivityTaskCanceledError, R>) -> Self
Source§impl<R> From<SdkError<RespondActivityTaskCompletedError, R>> for Error
impl<R> From<SdkError<RespondActivityTaskCompletedError, R>> for Error
Source§fn from(err: SdkError<RespondActivityTaskCompletedError, R>) -> Self
fn from(err: SdkError<RespondActivityTaskCompletedError, R>) -> Self
Source§impl<R> From<SdkError<RespondActivityTaskFailedError, R>> for Error
impl<R> From<SdkError<RespondActivityTaskFailedError, R>> for Error
Source§fn from(err: SdkError<RespondActivityTaskFailedError, R>) -> Self
fn from(err: SdkError<RespondActivityTaskFailedError, R>) -> Self
Source§impl<R> From<SdkError<RespondDecisionTaskCompletedError, R>> for Error
impl<R> From<SdkError<RespondDecisionTaskCompletedError, R>> for Error
Source§fn from(err: SdkError<RespondDecisionTaskCompletedError, R>) -> Self
fn from(err: SdkError<RespondDecisionTaskCompletedError, R>) -> Self
Source§impl<R> From<SdkError<SignalWorkflowExecutionError, R>> for Error
impl<R> From<SdkError<SignalWorkflowExecutionError, R>> for Error
Source§fn from(err: SdkError<SignalWorkflowExecutionError, R>) -> Self
fn from(err: SdkError<SignalWorkflowExecutionError, R>) -> Self
Source§impl<R> From<SdkError<StartWorkflowExecutionError, R>> for Error
impl<R> From<SdkError<StartWorkflowExecutionError, R>> for Error
Source§fn from(err: SdkError<StartWorkflowExecutionError, R>) -> Self
fn from(err: SdkError<StartWorkflowExecutionError, 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<TerminateWorkflowExecutionError, R>> for Error
impl<R> From<SdkError<TerminateWorkflowExecutionError, R>> for Error
Source§fn from(err: SdkError<TerminateWorkflowExecutionError, R>) -> Self
fn from(err: SdkError<TerminateWorkflowExecutionError, R>) -> Self
Source§impl<R> From<SdkError<UndeprecateActivityTypeError, R>> for Error
impl<R> From<SdkError<UndeprecateActivityTypeError, R>> for Error
Source§fn from(err: SdkError<UndeprecateActivityTypeError, R>) -> Self
fn from(err: SdkError<UndeprecateActivityTypeError, R>) -> Self
Source§impl<R> From<SdkError<UndeprecateDomainError, R>> for Error
impl<R> From<SdkError<UndeprecateDomainError, R>> for Error
Source§fn from(err: SdkError<UndeprecateDomainError, R>) -> Self
fn from(err: SdkError<UndeprecateDomainError, R>) -> Self
Source§impl<R> From<SdkError<UndeprecateWorkflowTypeError, R>> for Error
impl<R> From<SdkError<UndeprecateWorkflowTypeError, R>> for Error
Source§fn from(err: SdkError<UndeprecateWorkflowTypeError, R>) -> Self
fn from(err: SdkError<UndeprecateWorkflowTypeError, 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 From<SignalWorkflowExecutionError> for Error
impl From<SignalWorkflowExecutionError> for Error
Source§fn from(err: SignalWorkflowExecutionError) -> Self
fn from(err: SignalWorkflowExecutionError) -> Self
Source§impl From<StartWorkflowExecutionError> for Error
impl From<StartWorkflowExecutionError> for Error
Source§fn from(err: StartWorkflowExecutionError) -> Self
fn from(err: StartWorkflowExecutionError) -> 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<TerminateWorkflowExecutionError> for Error
impl From<TerminateWorkflowExecutionError> for Error
Source§fn from(err: TerminateWorkflowExecutionError) -> Self
fn from(err: TerminateWorkflowExecutionError) -> Self
Source§impl From<UndeprecateActivityTypeError> for Error
impl From<UndeprecateActivityTypeError> for Error
Source§fn from(err: UndeprecateActivityTypeError) -> Self
fn from(err: UndeprecateActivityTypeError) -> Self
Source§impl From<UndeprecateDomainError> for Error
impl From<UndeprecateDomainError> for Error
Source§fn from(err: UndeprecateDomainError) -> Self
fn from(err: UndeprecateDomainError) -> Self
Source§impl From<UndeprecateWorkflowTypeError> for Error
impl From<UndeprecateWorkflowTypeError> for Error
Source§fn from(err: UndeprecateWorkflowTypeError) -> Self
fn from(err: UndeprecateWorkflowTypeError) -> 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 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);