Enum Error

Source
#[non_exhaustive]
pub enum Error {
Show 57 variants AlpnPolicyNotSupportedException(AlpnPolicyNotSupportedException), AllocationIdNotFoundException(AllocationIdNotFoundException), AvailabilityZoneNotSupportedException(AvailabilityZoneNotSupportedException), CaCertificatesBundleNotFoundException(CaCertificatesBundleNotFoundException), CapacityDecreaseRequestsLimitExceededException(CapacityDecreaseRequestsLimitExceededException), CapacityReservationPendingException(CapacityReservationPendingException), CapacityUnitsLimitExceededException(CapacityUnitsLimitExceededException), CertificateNotFoundException(CertificateNotFoundException), DeleteAssociationSameAccountException(DeleteAssociationSameAccountException), DuplicateListenerException(DuplicateListenerException), DuplicateLoadBalancerNameException(DuplicateLoadBalancerNameException), DuplicateTagKeysException(DuplicateTagKeysException), DuplicateTargetGroupNameException(DuplicateTargetGroupNameException), DuplicateTrustStoreNameException(DuplicateTrustStoreNameException), HealthUnavailableException(HealthUnavailableException), IncompatibleProtocolsException(IncompatibleProtocolsException), InsufficientCapacityException(InsufficientCapacityException), InvalidCaCertificatesBundleException(InvalidCaCertificatesBundleException), InvalidConfigurationRequestException(InvalidConfigurationRequestException), InvalidLoadBalancerActionException(InvalidLoadBalancerActionException), InvalidRevocationContentException(InvalidRevocationContentException), InvalidSchemeException(InvalidSchemeException), InvalidSecurityGroupException(InvalidSecurityGroupException), InvalidSubnetException(InvalidSubnetException), InvalidTargetException(InvalidTargetException), ListenerNotFoundException(ListenerNotFoundException), LoadBalancerNotFoundException(LoadBalancerNotFoundException), OperationNotPermittedException(OperationNotPermittedException), PriorRequestNotCompleteException(PriorRequestNotCompleteException), PriorityInUseException(PriorityInUseException), ResourceInUseException(ResourceInUseException), ResourceNotFoundException(ResourceNotFoundException), RevocationContentNotFoundException(RevocationContentNotFoundException), RevocationIdNotFoundException(RevocationIdNotFoundException), RuleNotFoundException(RuleNotFoundException), SslPolicyNotFoundException(SslPolicyNotFoundException), SubnetNotFoundException(SubnetNotFoundException), TargetGroupAssociationLimitException(TargetGroupAssociationLimitException), TargetGroupNotFoundException(TargetGroupNotFoundException), TooManyActionsException(TooManyActionsException), TooManyCertificatesException(TooManyCertificatesException), TooManyListenersException(TooManyListenersException), TooManyLoadBalancersException(TooManyLoadBalancersException), TooManyRegistrationsForTargetIdException(TooManyRegistrationsForTargetIdException), TooManyRulesException(TooManyRulesException), TooManyTagsException(TooManyTagsException), TooManyTargetGroupsException(TooManyTargetGroupsException), TooManyTargetsException(TooManyTargetsException), TooManyTrustStoreRevocationEntriesException(TooManyTrustStoreRevocationEntriesException), TooManyTrustStoresException(TooManyTrustStoresException), TooManyUniqueTargetGroupsPerLoadBalancerException(TooManyUniqueTargetGroupsPerLoadBalancerException), TrustStoreAssociationNotFoundException(TrustStoreAssociationNotFoundException), TrustStoreInUseException(TrustStoreInUseException), TrustStoreNotFoundException(TrustStoreNotFoundException), TrustStoreNotReadyException(TrustStoreNotReadyException), UnsupportedProtocolException(UnsupportedProtocolException), 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.
§

AlpnPolicyNotSupportedException(AlpnPolicyNotSupportedException)

The specified ALPN policy is not supported.

§

AllocationIdNotFoundException(AllocationIdNotFoundException)

The specified allocation ID does not exist.

§

AvailabilityZoneNotSupportedException(AvailabilityZoneNotSupportedException)

The specified Availability Zone is not supported.

§

CaCertificatesBundleNotFoundException(CaCertificatesBundleNotFoundException)

The specified ca certificate bundle does not exist.

§

CapacityDecreaseRequestsLimitExceededException(CapacityDecreaseRequestsLimitExceededException)

You've exceeded the daily capacity decrease limit for this reservation.

§

CapacityReservationPendingException(CapacityReservationPendingException)

There is a pending capacity reservation.

§

CapacityUnitsLimitExceededException(CapacityUnitsLimitExceededException)

You've exceeded the capacity units limit.

§

CertificateNotFoundException(CertificateNotFoundException)

The specified certificate does not exist.

§

DeleteAssociationSameAccountException(DeleteAssociationSameAccountException)

The specified association can't be within the same account.

§

DuplicateListenerException(DuplicateListenerException)

A listener with the specified port already exists.

§

DuplicateLoadBalancerNameException(DuplicateLoadBalancerNameException)

A load balancer with the specified name already exists.

§

DuplicateTagKeysException(DuplicateTagKeysException)

A tag key was specified more than once.

§

DuplicateTargetGroupNameException(DuplicateTargetGroupNameException)

A target group with the specified name already exists.

§

DuplicateTrustStoreNameException(DuplicateTrustStoreNameException)

A trust store with the specified name already exists.

§

HealthUnavailableException(HealthUnavailableException)

The health of the specified targets could not be retrieved due to an internal error.

§

IncompatibleProtocolsException(IncompatibleProtocolsException)

The specified configuration is not valid with this protocol.

§

InsufficientCapacityException(InsufficientCapacityException)

There is insufficient capacity to reserve.

§

InvalidCaCertificatesBundleException(InvalidCaCertificatesBundleException)

The specified ca certificate bundle is in an invalid format, or corrupt.

§

InvalidConfigurationRequestException(InvalidConfigurationRequestException)

The requested configuration is not valid.

§

InvalidLoadBalancerActionException(InvalidLoadBalancerActionException)

The requested action is not valid.

§

InvalidRevocationContentException(InvalidRevocationContentException)

The provided revocation file is an invalid format, or uses an incorrect algorithm.

§

InvalidSchemeException(InvalidSchemeException)

The requested scheme is not valid.

§

InvalidSecurityGroupException(InvalidSecurityGroupException)

The specified security group does not exist.

§

InvalidSubnetException(InvalidSubnetException)

The specified subnet is out of available addresses.

§

InvalidTargetException(InvalidTargetException)

The specified target does not exist, is not in the same VPC as the target group, or has an unsupported instance type.

§

ListenerNotFoundException(ListenerNotFoundException)

The specified listener does not exist.

§

LoadBalancerNotFoundException(LoadBalancerNotFoundException)

The specified load balancer does not exist.

§

OperationNotPermittedException(OperationNotPermittedException)

This operation is not allowed.

§

PriorRequestNotCompleteException(PriorRequestNotCompleteException)

This operation is not allowed while a prior request has not been completed.

§

PriorityInUseException(PriorityInUseException)

The specified priority is in use.

§

ResourceInUseException(ResourceInUseException)

A specified resource is in use.

§

ResourceNotFoundException(ResourceNotFoundException)

The specified resource does not exist.

§

RevocationContentNotFoundException(RevocationContentNotFoundException)

The specified revocation file does not exist.

§

RevocationIdNotFoundException(RevocationIdNotFoundException)

The specified revocation ID does not exist.

§

RuleNotFoundException(RuleNotFoundException)

The specified rule does not exist.

§

SslPolicyNotFoundException(SslPolicyNotFoundException)

The specified SSL policy does not exist.

§

SubnetNotFoundException(SubnetNotFoundException)

The specified subnet does not exist.

§

TargetGroupAssociationLimitException(TargetGroupAssociationLimitException)

You've reached the limit on the number of load balancers per target group.

§

TargetGroupNotFoundException(TargetGroupNotFoundException)

The specified target group does not exist.

§

TooManyActionsException(TooManyActionsException)

You've reached the limit on the number of actions per rule.

§

TooManyCertificatesException(TooManyCertificatesException)

You've reached the limit on the number of certificates per load balancer.

§

TooManyListenersException(TooManyListenersException)

You've reached the limit on the number of listeners per load balancer.

§

TooManyLoadBalancersException(TooManyLoadBalancersException)

You've reached the limit on the number of load balancers for your Amazon Web Services account.

§

TooManyRegistrationsForTargetIdException(TooManyRegistrationsForTargetIdException)

You've reached the limit on the number of times a target can be registered with a load balancer.

§

TooManyRulesException(TooManyRulesException)

You've reached the limit on the number of rules per load balancer.

§

TooManyTagsException(TooManyTagsException)

You've reached the limit on the number of tags for this resource.

§

TooManyTargetGroupsException(TooManyTargetGroupsException)

You've reached the limit on the number of target groups for your Amazon Web Services account.

§

TooManyTargetsException(TooManyTargetsException)

You've reached the limit on the number of targets.

§

TooManyTrustStoreRevocationEntriesException(TooManyTrustStoreRevocationEntriesException)

The specified trust store has too many revocation entries.

§

TooManyTrustStoresException(TooManyTrustStoresException)

You've reached the limit on the number of trust stores for your Amazon Web Services account.

§

TooManyUniqueTargetGroupsPerLoadBalancerException(TooManyUniqueTargetGroupsPerLoadBalancerException)

You've reached the limit on the number of unique target groups per load balancer across all listeners. If a target group is used by multiple actions for a load balancer, it is counted as only one use.

§

TrustStoreAssociationNotFoundException(TrustStoreAssociationNotFoundException)

The specified association does not exist.

§

TrustStoreInUseException(TrustStoreInUseException)

The specified trust store is currently in use.

§

TrustStoreNotFoundException(TrustStoreNotFoundException)

The specified trust store does not exist.

§

TrustStoreNotReadyException(TrustStoreNotReadyException)

The specified trust store is not active.

§

UnsupportedProtocolException(UnsupportedProtocolException)

The specified protocol is not supported.

§

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.0.0 · Source§

fn description(&self) -> &str

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

Source§

fn from(err: AddListenerCertificatesError) -> Self

Converts to this type from the input type.
Source§

impl From<AddTagsError> for Error

Source§

fn from(err: AddTagsError) -> Self

Converts to this type from the input type.
Source§

impl From<AddTrustStoreRevocationsError> for Error

Source§

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

Source§

fn from(err: CreateListenerError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateLoadBalancerError> for Error

Source§

fn from(err: CreateLoadBalancerError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateRuleError> for Error

Source§

fn from(err: CreateRuleError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTargetGroupError> for Error

Source§

fn from(err: CreateTargetGroupError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTrustStoreError> for Error

Source§

fn from(err: CreateTrustStoreError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteListenerError> for Error

Source§

fn from(err: DeleteListenerError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteLoadBalancerError> for Error

Source§

fn from(err: DeleteLoadBalancerError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteRuleError> for Error

Source§

fn from(err: DeleteRuleError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteSharedTrustStoreAssociationError> for Error

Source§

fn from(err: DeleteSharedTrustStoreAssociationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteTargetGroupError> for Error

Source§

fn from(err: DeleteTargetGroupError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteTrustStoreError> for Error

Source§

fn from(err: DeleteTrustStoreError) -> Self

Converts to this type from the input type.
Source§

impl From<DeregisterTargetsError> for Error

Source§

fn from(err: DeregisterTargetsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeAccountLimitsError> for Error

Source§

fn from(err: DescribeAccountLimitsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeCapacityReservationError> for Error

Source§

fn from(err: DescribeCapacityReservationError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeListenerAttributesError> for Error

Source§

fn from(err: DescribeListenerAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeListenerCertificatesError> for Error

Source§

fn from(err: DescribeListenerCertificatesError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeListenersError> for Error

Source§

fn from(err: DescribeListenersError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeLoadBalancerAttributesError> for Error

Source§

fn from(err: DescribeLoadBalancerAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeLoadBalancersError> for Error

Source§

fn from(err: DescribeLoadBalancersError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeRulesError> for Error

Source§

fn from(err: DescribeRulesError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeSSLPoliciesError> for Error

Source§

fn from(err: DescribeSSLPoliciesError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTagsError> for Error

Source§

fn from(err: DescribeTagsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTargetGroupAttributesError> for Error

Source§

fn from(err: DescribeTargetGroupAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTargetGroupsError> for Error

Source§

fn from(err: DescribeTargetGroupsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTargetHealthError> for Error

Source§

fn from(err: DescribeTargetHealthError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTrustStoreAssociationsError> for Error

Source§

fn from(err: DescribeTrustStoreAssociationsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTrustStoreRevocationsError> for Error

Source§

fn from(err: DescribeTrustStoreRevocationsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTrustStoresError> for Error

Source§

fn from(err: DescribeTrustStoresError) -> Self

Converts to this type from the input type.
Source§

impl From<GetResourcePolicyError> for Error

Source§

fn from(err: GetResourcePolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<GetTrustStoreCaCertificatesBundleError> for Error

Source§

fn from(err: GetTrustStoreCaCertificatesBundleError) -> Self

Converts to this type from the input type.
Source§

impl From<GetTrustStoreRevocationContentError> for Error

Source§

fn from(err: GetTrustStoreRevocationContentError) -> Self

Converts to this type from the input type.
Source§

impl From<ModifyCapacityReservationError> for Error

Source§

fn from(err: ModifyCapacityReservationError) -> Self

Converts to this type from the input type.
Source§

impl From<ModifyListenerAttributesError> for Error

Source§

fn from(err: ModifyListenerAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<ModifyListenerError> for Error

Source§

fn from(err: ModifyListenerError) -> Self

Converts to this type from the input type.
Source§

impl From<ModifyLoadBalancerAttributesError> for Error

Source§

fn from(err: ModifyLoadBalancerAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<ModifyRuleError> for Error

Source§

fn from(err: ModifyRuleError) -> Self

Converts to this type from the input type.
Source§

impl From<ModifyTargetGroupAttributesError> for Error

Source§

fn from(err: ModifyTargetGroupAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<ModifyTargetGroupError> for Error

Source§

fn from(err: ModifyTargetGroupError) -> Self

Converts to this type from the input type.
Source§

impl From<ModifyTrustStoreError> for Error

Source§

fn from(err: ModifyTrustStoreError) -> Self

Converts to this type from the input type.
Source§

impl From<RegisterTargetsError> for Error

Source§

fn from(err: RegisterTargetsError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveListenerCertificatesError> for Error

Source§

fn from(err: RemoveListenerCertificatesError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveTagsError> for Error

Source§

fn from(err: RemoveTagsError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveTrustStoreRevocationsError> for Error

Source§

fn from(err: RemoveTrustStoreRevocationsError) -> Self

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl From<SetIpAddressTypeError> for Error

Source§

fn from(err: SetIpAddressTypeError) -> Self

Converts to this type from the input type.
Source§

impl From<SetRulePrioritiesError> for Error

Source§

fn from(err: SetRulePrioritiesError) -> Self

Converts to this type from the input type.
Source§

impl From<SetSecurityGroupsError> for Error

Source§

fn from(err: SetSecurityGroupsError) -> Self

Converts to this type from the input type.
Source§

impl From<SetSubnetsError> for Error

Source§

fn from(err: SetSubnetsError) -> Self

Converts to this type from the input type.
Source§

impl<O, E> From<WaiterError<O, E>> for Error
where O: Debug + Send + Sync + 'static, E: Error + Send + Sync + 'static,

Source§

fn from(err: WaiterError<O, E>) -> 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§

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
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T