#[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
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.
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)
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<AddListenerCertificatesError> for Error
impl From<AddListenerCertificatesError> for Error
Source§fn from(err: AddListenerCertificatesError) -> Self
fn from(err: AddListenerCertificatesError) -> Self
Source§impl From<AddTagsError> for Error
impl From<AddTagsError> for Error
Source§fn from(err: AddTagsError) -> Self
fn from(err: AddTagsError) -> Self
Source§impl From<AddTrustStoreRevocationsError> for Error
impl From<AddTrustStoreRevocationsError> for Error
Source§fn from(err: AddTrustStoreRevocationsError) -> Self
fn from(err: AddTrustStoreRevocationsError) -> Self
Source§impl From<BuildError> for Error
impl From<BuildError> for Error
Source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Source§impl From<CreateListenerError> for Error
impl From<CreateListenerError> for Error
Source§fn from(err: CreateListenerError) -> Self
fn from(err: CreateListenerError) -> Self
Source§impl From<CreateLoadBalancerError> for Error
impl From<CreateLoadBalancerError> for Error
Source§fn from(err: CreateLoadBalancerError) -> Self
fn from(err: CreateLoadBalancerError) -> Self
Source§impl From<CreateRuleError> for Error
impl From<CreateRuleError> for Error
Source§fn from(err: CreateRuleError) -> Self
fn from(err: CreateRuleError) -> Self
Source§impl From<CreateTargetGroupError> for Error
impl From<CreateTargetGroupError> for Error
Source§fn from(err: CreateTargetGroupError) -> Self
fn from(err: CreateTargetGroupError) -> Self
Source§impl From<CreateTrustStoreError> for Error
impl From<CreateTrustStoreError> for Error
Source§fn from(err: CreateTrustStoreError) -> Self
fn from(err: CreateTrustStoreError) -> Self
Source§impl From<DeleteListenerError> for Error
impl From<DeleteListenerError> for Error
Source§fn from(err: DeleteListenerError) -> Self
fn from(err: DeleteListenerError) -> Self
Source§impl From<DeleteLoadBalancerError> for Error
impl From<DeleteLoadBalancerError> for Error
Source§fn from(err: DeleteLoadBalancerError) -> Self
fn from(err: DeleteLoadBalancerError) -> Self
Source§impl From<DeleteRuleError> for Error
impl From<DeleteRuleError> for Error
Source§fn from(err: DeleteRuleError) -> Self
fn from(err: DeleteRuleError) -> Self
Source§fn from(err: DeleteSharedTrustStoreAssociationError) -> Self
fn from(err: DeleteSharedTrustStoreAssociationError) -> Self
Source§impl From<DeleteTargetGroupError> for Error
impl From<DeleteTargetGroupError> for Error
Source§fn from(err: DeleteTargetGroupError) -> Self
fn from(err: DeleteTargetGroupError) -> Self
Source§impl From<DeleteTrustStoreError> for Error
impl From<DeleteTrustStoreError> for Error
Source§fn from(err: DeleteTrustStoreError) -> Self
fn from(err: DeleteTrustStoreError) -> Self
Source§impl From<DeregisterTargetsError> for Error
impl From<DeregisterTargetsError> for Error
Source§fn from(err: DeregisterTargetsError) -> Self
fn from(err: DeregisterTargetsError) -> Self
Source§impl From<DescribeAccountLimitsError> for Error
impl From<DescribeAccountLimitsError> for Error
Source§fn from(err: DescribeAccountLimitsError) -> Self
fn from(err: DescribeAccountLimitsError) -> Self
Source§impl From<DescribeCapacityReservationError> for Error
impl From<DescribeCapacityReservationError> for Error
Source§fn from(err: DescribeCapacityReservationError) -> Self
fn from(err: DescribeCapacityReservationError) -> Self
Source§impl From<DescribeListenerAttributesError> for Error
impl From<DescribeListenerAttributesError> for Error
Source§fn from(err: DescribeListenerAttributesError) -> Self
fn from(err: DescribeListenerAttributesError) -> Self
Source§impl From<DescribeListenerCertificatesError> for Error
impl From<DescribeListenerCertificatesError> for Error
Source§fn from(err: DescribeListenerCertificatesError) -> Self
fn from(err: DescribeListenerCertificatesError) -> Self
Source§impl From<DescribeListenersError> for Error
impl From<DescribeListenersError> for Error
Source§fn from(err: DescribeListenersError) -> Self
fn from(err: DescribeListenersError) -> Self
Source§impl From<DescribeLoadBalancerAttributesError> for Error
impl From<DescribeLoadBalancerAttributesError> for Error
Source§fn from(err: DescribeLoadBalancerAttributesError) -> Self
fn from(err: DescribeLoadBalancerAttributesError) -> Self
Source§impl From<DescribeLoadBalancersError> for Error
impl From<DescribeLoadBalancersError> for Error
Source§fn from(err: DescribeLoadBalancersError) -> Self
fn from(err: DescribeLoadBalancersError) -> Self
Source§impl From<DescribeRulesError> for Error
impl From<DescribeRulesError> for Error
Source§fn from(err: DescribeRulesError) -> Self
fn from(err: DescribeRulesError) -> Self
Source§impl From<DescribeSSLPoliciesError> for Error
impl From<DescribeSSLPoliciesError> for Error
Source§fn from(err: DescribeSSLPoliciesError) -> Self
fn from(err: DescribeSSLPoliciesError) -> Self
Source§impl From<DescribeTagsError> for Error
impl From<DescribeTagsError> for Error
Source§fn from(err: DescribeTagsError) -> Self
fn from(err: DescribeTagsError) -> Self
Source§impl From<DescribeTargetGroupAttributesError> for Error
impl From<DescribeTargetGroupAttributesError> for Error
Source§fn from(err: DescribeTargetGroupAttributesError) -> Self
fn from(err: DescribeTargetGroupAttributesError) -> Self
Source§impl From<DescribeTargetGroupsError> for Error
impl From<DescribeTargetGroupsError> for Error
Source§fn from(err: DescribeTargetGroupsError) -> Self
fn from(err: DescribeTargetGroupsError) -> Self
Source§impl From<DescribeTargetHealthError> for Error
impl From<DescribeTargetHealthError> for Error
Source§fn from(err: DescribeTargetHealthError) -> Self
fn from(err: DescribeTargetHealthError) -> Self
Source§impl From<DescribeTrustStoreAssociationsError> for Error
impl From<DescribeTrustStoreAssociationsError> for Error
Source§fn from(err: DescribeTrustStoreAssociationsError) -> Self
fn from(err: DescribeTrustStoreAssociationsError) -> Self
Source§impl From<DescribeTrustStoreRevocationsError> for Error
impl From<DescribeTrustStoreRevocationsError> for Error
Source§fn from(err: DescribeTrustStoreRevocationsError) -> Self
fn from(err: DescribeTrustStoreRevocationsError) -> Self
Source§impl From<DescribeTrustStoresError> for Error
impl From<DescribeTrustStoresError> for Error
Source§fn from(err: DescribeTrustStoresError) -> Self
fn from(err: DescribeTrustStoresError) -> Self
Source§impl From<GetResourcePolicyError> for Error
impl From<GetResourcePolicyError> for Error
Source§fn from(err: GetResourcePolicyError) -> Self
fn from(err: GetResourcePolicyError) -> Self
Source§impl From<GetTrustStoreCaCertificatesBundleError> for Error
impl From<GetTrustStoreCaCertificatesBundleError> for Error
Source§fn from(err: GetTrustStoreCaCertificatesBundleError) -> Self
fn from(err: GetTrustStoreCaCertificatesBundleError) -> Self
Source§impl From<GetTrustStoreRevocationContentError> for Error
impl From<GetTrustStoreRevocationContentError> for Error
Source§fn from(err: GetTrustStoreRevocationContentError) -> Self
fn from(err: GetTrustStoreRevocationContentError) -> Self
Source§impl From<ModifyCapacityReservationError> for Error
impl From<ModifyCapacityReservationError> for Error
Source§fn from(err: ModifyCapacityReservationError) -> Self
fn from(err: ModifyCapacityReservationError) -> Self
Source§impl From<ModifyListenerAttributesError> for Error
impl From<ModifyListenerAttributesError> for Error
Source§fn from(err: ModifyListenerAttributesError) -> Self
fn from(err: ModifyListenerAttributesError) -> Self
Source§impl From<ModifyListenerError> for Error
impl From<ModifyListenerError> for Error
Source§fn from(err: ModifyListenerError) -> Self
fn from(err: ModifyListenerError) -> Self
Source§impl From<ModifyLoadBalancerAttributesError> for Error
impl From<ModifyLoadBalancerAttributesError> for Error
Source§fn from(err: ModifyLoadBalancerAttributesError) -> Self
fn from(err: ModifyLoadBalancerAttributesError) -> Self
Source§impl From<ModifyRuleError> for Error
impl From<ModifyRuleError> for Error
Source§fn from(err: ModifyRuleError) -> Self
fn from(err: ModifyRuleError) -> Self
Source§impl From<ModifyTargetGroupAttributesError> for Error
impl From<ModifyTargetGroupAttributesError> for Error
Source§fn from(err: ModifyTargetGroupAttributesError) -> Self
fn from(err: ModifyTargetGroupAttributesError) -> Self
Source§impl From<ModifyTargetGroupError> for Error
impl From<ModifyTargetGroupError> for Error
Source§fn from(err: ModifyTargetGroupError) -> Self
fn from(err: ModifyTargetGroupError) -> Self
Source§impl From<ModifyTrustStoreError> for Error
impl From<ModifyTrustStoreError> for Error
Source§fn from(err: ModifyTrustStoreError) -> Self
fn from(err: ModifyTrustStoreError) -> Self
Source§impl From<RegisterTargetsError> for Error
impl From<RegisterTargetsError> for Error
Source§fn from(err: RegisterTargetsError) -> Self
fn from(err: RegisterTargetsError) -> Self
Source§impl From<RemoveListenerCertificatesError> for Error
impl From<RemoveListenerCertificatesError> for Error
Source§fn from(err: RemoveListenerCertificatesError) -> Self
fn from(err: RemoveListenerCertificatesError) -> Self
Source§impl From<RemoveTagsError> for Error
impl From<RemoveTagsError> for Error
Source§fn from(err: RemoveTagsError) -> Self
fn from(err: RemoveTagsError) -> Self
Source§impl From<RemoveTrustStoreRevocationsError> for Error
impl From<RemoveTrustStoreRevocationsError> for Error
Source§fn from(err: RemoveTrustStoreRevocationsError) -> Self
fn from(err: RemoveTrustStoreRevocationsError) -> Self
Source§impl<R> From<SdkError<AddListenerCertificatesError, R>> for Error
impl<R> From<SdkError<AddListenerCertificatesError, R>> for Error
Source§fn from(err: SdkError<AddListenerCertificatesError, R>) -> Self
fn from(err: SdkError<AddListenerCertificatesError, R>) -> Self
Source§impl<R> From<SdkError<AddTagsError, R>> for Error
impl<R> From<SdkError<AddTagsError, R>> for Error
Source§fn from(err: SdkError<AddTagsError, R>) -> Self
fn from(err: SdkError<AddTagsError, R>) -> Self
Source§impl<R> From<SdkError<AddTrustStoreRevocationsError, R>> for Error
impl<R> From<SdkError<AddTrustStoreRevocationsError, R>> for Error
Source§fn from(err: SdkError<AddTrustStoreRevocationsError, R>) -> Self
fn from(err: SdkError<AddTrustStoreRevocationsError, R>) -> Self
Source§impl<R> From<SdkError<CreateListenerError, R>> for Error
impl<R> From<SdkError<CreateListenerError, R>> for Error
Source§fn from(err: SdkError<CreateListenerError, R>) -> Self
fn from(err: SdkError<CreateListenerError, R>) -> Self
Source§impl<R> From<SdkError<CreateLoadBalancerError, R>> for Error
impl<R> From<SdkError<CreateLoadBalancerError, R>> for Error
Source§fn from(err: SdkError<CreateLoadBalancerError, R>) -> Self
fn from(err: SdkError<CreateLoadBalancerError, R>) -> Self
Source§impl<R> From<SdkError<CreateRuleError, R>> for Error
impl<R> From<SdkError<CreateRuleError, R>> for Error
Source§fn from(err: SdkError<CreateRuleError, R>) -> Self
fn from(err: SdkError<CreateRuleError, R>) -> Self
Source§impl<R> From<SdkError<CreateTargetGroupError, R>> for Error
impl<R> From<SdkError<CreateTargetGroupError, R>> for Error
Source§fn from(err: SdkError<CreateTargetGroupError, R>) -> Self
fn from(err: SdkError<CreateTargetGroupError, R>) -> Self
Source§impl<R> From<SdkError<CreateTrustStoreError, R>> for Error
impl<R> From<SdkError<CreateTrustStoreError, R>> for Error
Source§fn from(err: SdkError<CreateTrustStoreError, R>) -> Self
fn from(err: SdkError<CreateTrustStoreError, R>) -> Self
Source§impl<R> From<SdkError<DeleteListenerError, R>> for Error
impl<R> From<SdkError<DeleteListenerError, R>> for Error
Source§fn from(err: SdkError<DeleteListenerError, R>) -> Self
fn from(err: SdkError<DeleteListenerError, R>) -> Self
Source§impl<R> From<SdkError<DeleteLoadBalancerError, R>> for Error
impl<R> From<SdkError<DeleteLoadBalancerError, R>> for Error
Source§fn from(err: SdkError<DeleteLoadBalancerError, R>) -> Self
fn from(err: SdkError<DeleteLoadBalancerError, R>) -> Self
Source§impl<R> From<SdkError<DeleteRuleError, R>> for Error
impl<R> From<SdkError<DeleteRuleError, R>> for Error
Source§fn from(err: SdkError<DeleteRuleError, R>) -> Self
fn from(err: SdkError<DeleteRuleError, R>) -> Self
Source§fn from(err: SdkError<DeleteSharedTrustStoreAssociationError, R>) -> Self
fn from(err: SdkError<DeleteSharedTrustStoreAssociationError, R>) -> Self
Source§impl<R> From<SdkError<DeleteTargetGroupError, R>> for Error
impl<R> From<SdkError<DeleteTargetGroupError, R>> for Error
Source§fn from(err: SdkError<DeleteTargetGroupError, R>) -> Self
fn from(err: SdkError<DeleteTargetGroupError, R>) -> Self
Source§impl<R> From<SdkError<DeleteTrustStoreError, R>> for Error
impl<R> From<SdkError<DeleteTrustStoreError, R>> for Error
Source§fn from(err: SdkError<DeleteTrustStoreError, R>) -> Self
fn from(err: SdkError<DeleteTrustStoreError, R>) -> Self
Source§impl<R> From<SdkError<DeregisterTargetsError, R>> for Error
impl<R> From<SdkError<DeregisterTargetsError, R>> for Error
Source§fn from(err: SdkError<DeregisterTargetsError, R>) -> Self
fn from(err: SdkError<DeregisterTargetsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeAccountLimitsError, R>> for Error
impl<R> From<SdkError<DescribeAccountLimitsError, R>> for Error
Source§fn from(err: SdkError<DescribeAccountLimitsError, R>) -> Self
fn from(err: SdkError<DescribeAccountLimitsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeCapacityReservationError, R>> for Error
impl<R> From<SdkError<DescribeCapacityReservationError, R>> for Error
Source§fn from(err: SdkError<DescribeCapacityReservationError, R>) -> Self
fn from(err: SdkError<DescribeCapacityReservationError, R>) -> Self
Source§impl<R> From<SdkError<DescribeListenerAttributesError, R>> for Error
impl<R> From<SdkError<DescribeListenerAttributesError, R>> for Error
Source§fn from(err: SdkError<DescribeListenerAttributesError, R>) -> Self
fn from(err: SdkError<DescribeListenerAttributesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeListenerCertificatesError, R>> for Error
impl<R> From<SdkError<DescribeListenerCertificatesError, R>> for Error
Source§fn from(err: SdkError<DescribeListenerCertificatesError, R>) -> Self
fn from(err: SdkError<DescribeListenerCertificatesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeListenersError, R>> for Error
impl<R> From<SdkError<DescribeListenersError, R>> for Error
Source§fn from(err: SdkError<DescribeListenersError, R>) -> Self
fn from(err: SdkError<DescribeListenersError, R>) -> Self
Source§impl<R> From<SdkError<DescribeLoadBalancerAttributesError, R>> for Error
impl<R> From<SdkError<DescribeLoadBalancerAttributesError, R>> for Error
Source§fn from(err: SdkError<DescribeLoadBalancerAttributesError, R>) -> Self
fn from(err: SdkError<DescribeLoadBalancerAttributesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeLoadBalancersError, R>> for Error
impl<R> From<SdkError<DescribeLoadBalancersError, R>> for Error
Source§fn from(err: SdkError<DescribeLoadBalancersError, R>) -> Self
fn from(err: SdkError<DescribeLoadBalancersError, R>) -> Self
Source§impl<R> From<SdkError<DescribeRulesError, R>> for Error
impl<R> From<SdkError<DescribeRulesError, R>> for Error
Source§fn from(err: SdkError<DescribeRulesError, R>) -> Self
fn from(err: SdkError<DescribeRulesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeSSLPoliciesError, R>> for Error
impl<R> From<SdkError<DescribeSSLPoliciesError, R>> for Error
Source§fn from(err: SdkError<DescribeSSLPoliciesError, R>) -> Self
fn from(err: SdkError<DescribeSSLPoliciesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeTagsError, R>> for Error
impl<R> From<SdkError<DescribeTagsError, R>> for Error
Source§fn from(err: SdkError<DescribeTagsError, R>) -> Self
fn from(err: SdkError<DescribeTagsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeTargetGroupAttributesError, R>> for Error
impl<R> From<SdkError<DescribeTargetGroupAttributesError, R>> for Error
Source§fn from(err: SdkError<DescribeTargetGroupAttributesError, R>) -> Self
fn from(err: SdkError<DescribeTargetGroupAttributesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeTargetGroupsError, R>> for Error
impl<R> From<SdkError<DescribeTargetGroupsError, R>> for Error
Source§fn from(err: SdkError<DescribeTargetGroupsError, R>) -> Self
fn from(err: SdkError<DescribeTargetGroupsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeTargetHealthError, R>> for Error
impl<R> From<SdkError<DescribeTargetHealthError, R>> for Error
Source§fn from(err: SdkError<DescribeTargetHealthError, R>) -> Self
fn from(err: SdkError<DescribeTargetHealthError, R>) -> Self
Source§impl<R> From<SdkError<DescribeTrustStoreAssociationsError, R>> for Error
impl<R> From<SdkError<DescribeTrustStoreAssociationsError, R>> for Error
Source§fn from(err: SdkError<DescribeTrustStoreAssociationsError, R>) -> Self
fn from(err: SdkError<DescribeTrustStoreAssociationsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeTrustStoreRevocationsError, R>> for Error
impl<R> From<SdkError<DescribeTrustStoreRevocationsError, R>> for Error
Source§fn from(err: SdkError<DescribeTrustStoreRevocationsError, R>) -> Self
fn from(err: SdkError<DescribeTrustStoreRevocationsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeTrustStoresError, R>> for Error
impl<R> From<SdkError<DescribeTrustStoresError, R>> for Error
Source§fn from(err: SdkError<DescribeTrustStoresError, R>) -> Self
fn from(err: SdkError<DescribeTrustStoresError, R>) -> Self
Source§impl<R> From<SdkError<GetResourcePolicyError, R>> for Error
impl<R> From<SdkError<GetResourcePolicyError, R>> for Error
Source§fn from(err: SdkError<GetResourcePolicyError, R>) -> Self
fn from(err: SdkError<GetResourcePolicyError, R>) -> Self
Source§impl<R> From<SdkError<GetTrustStoreCaCertificatesBundleError, R>> for Error
impl<R> From<SdkError<GetTrustStoreCaCertificatesBundleError, R>> for Error
Source§fn from(err: SdkError<GetTrustStoreCaCertificatesBundleError, R>) -> Self
fn from(err: SdkError<GetTrustStoreCaCertificatesBundleError, R>) -> Self
Source§impl<R> From<SdkError<GetTrustStoreRevocationContentError, R>> for Error
impl<R> From<SdkError<GetTrustStoreRevocationContentError, R>> for Error
Source§fn from(err: SdkError<GetTrustStoreRevocationContentError, R>) -> Self
fn from(err: SdkError<GetTrustStoreRevocationContentError, R>) -> Self
Source§impl<R> From<SdkError<ModifyCapacityReservationError, R>> for Error
impl<R> From<SdkError<ModifyCapacityReservationError, R>> for Error
Source§fn from(err: SdkError<ModifyCapacityReservationError, R>) -> Self
fn from(err: SdkError<ModifyCapacityReservationError, R>) -> Self
Source§impl<R> From<SdkError<ModifyListenerAttributesError, R>> for Error
impl<R> From<SdkError<ModifyListenerAttributesError, R>> for Error
Source§fn from(err: SdkError<ModifyListenerAttributesError, R>) -> Self
fn from(err: SdkError<ModifyListenerAttributesError, R>) -> Self
Source§impl<R> From<SdkError<ModifyListenerError, R>> for Error
impl<R> From<SdkError<ModifyListenerError, R>> for Error
Source§fn from(err: SdkError<ModifyListenerError, R>) -> Self
fn from(err: SdkError<ModifyListenerError, R>) -> Self
Source§impl<R> From<SdkError<ModifyLoadBalancerAttributesError, R>> for Error
impl<R> From<SdkError<ModifyLoadBalancerAttributesError, R>> for Error
Source§fn from(err: SdkError<ModifyLoadBalancerAttributesError, R>) -> Self
fn from(err: SdkError<ModifyLoadBalancerAttributesError, R>) -> Self
Source§impl<R> From<SdkError<ModifyRuleError, R>> for Error
impl<R> From<SdkError<ModifyRuleError, R>> for Error
Source§fn from(err: SdkError<ModifyRuleError, R>) -> Self
fn from(err: SdkError<ModifyRuleError, R>) -> Self
Source§impl<R> From<SdkError<ModifyTargetGroupAttributesError, R>> for Error
impl<R> From<SdkError<ModifyTargetGroupAttributesError, R>> for Error
Source§fn from(err: SdkError<ModifyTargetGroupAttributesError, R>) -> Self
fn from(err: SdkError<ModifyTargetGroupAttributesError, R>) -> Self
Source§impl<R> From<SdkError<ModifyTargetGroupError, R>> for Error
impl<R> From<SdkError<ModifyTargetGroupError, R>> for Error
Source§fn from(err: SdkError<ModifyTargetGroupError, R>) -> Self
fn from(err: SdkError<ModifyTargetGroupError, R>) -> Self
Source§impl<R> From<SdkError<ModifyTrustStoreError, R>> for Error
impl<R> From<SdkError<ModifyTrustStoreError, R>> for Error
Source§fn from(err: SdkError<ModifyTrustStoreError, R>) -> Self
fn from(err: SdkError<ModifyTrustStoreError, R>) -> Self
Source§impl<R> From<SdkError<RegisterTargetsError, R>> for Error
impl<R> From<SdkError<RegisterTargetsError, R>> for Error
Source§fn from(err: SdkError<RegisterTargetsError, R>) -> Self
fn from(err: SdkError<RegisterTargetsError, R>) -> Self
Source§impl<R> From<SdkError<RemoveListenerCertificatesError, R>> for Error
impl<R> From<SdkError<RemoveListenerCertificatesError, R>> for Error
Source§fn from(err: SdkError<RemoveListenerCertificatesError, R>) -> Self
fn from(err: SdkError<RemoveListenerCertificatesError, R>) -> Self
Source§impl<R> From<SdkError<RemoveTagsError, R>> for Error
impl<R> From<SdkError<RemoveTagsError, R>> for Error
Source§fn from(err: SdkError<RemoveTagsError, R>) -> Self
fn from(err: SdkError<RemoveTagsError, R>) -> Self
Source§impl<R> From<SdkError<RemoveTrustStoreRevocationsError, R>> for Error
impl<R> From<SdkError<RemoveTrustStoreRevocationsError, R>> for Error
Source§fn from(err: SdkError<RemoveTrustStoreRevocationsError, R>) -> Self
fn from(err: SdkError<RemoveTrustStoreRevocationsError, R>) -> Self
Source§impl<R> From<SdkError<SetIpAddressTypeError, R>> for Error
impl<R> From<SdkError<SetIpAddressTypeError, R>> for Error
Source§fn from(err: SdkError<SetIpAddressTypeError, R>) -> Self
fn from(err: SdkError<SetIpAddressTypeError, R>) -> Self
Source§impl<R> From<SdkError<SetRulePrioritiesError, R>> for Error
impl<R> From<SdkError<SetRulePrioritiesError, R>> for Error
Source§fn from(err: SdkError<SetRulePrioritiesError, R>) -> Self
fn from(err: SdkError<SetRulePrioritiesError, R>) -> Self
Source§impl<R> From<SdkError<SetSecurityGroupsError, R>> for Error
impl<R> From<SdkError<SetSecurityGroupsError, R>> for Error
Source§fn from(err: SdkError<SetSecurityGroupsError, R>) -> Self
fn from(err: SdkError<SetSecurityGroupsError, R>) -> Self
Source§impl<R> From<SdkError<SetSubnetsError, R>> for Error
impl<R> From<SdkError<SetSubnetsError, R>> for Error
Source§fn from(err: SdkError<SetSubnetsError, R>) -> Self
fn from(err: SdkError<SetSubnetsError, R>) -> Self
Source§impl From<SetIpAddressTypeError> for Error
impl From<SetIpAddressTypeError> for Error
Source§fn from(err: SetIpAddressTypeError) -> Self
fn from(err: SetIpAddressTypeError) -> Self
Source§impl From<SetRulePrioritiesError> for Error
impl From<SetRulePrioritiesError> for Error
Source§fn from(err: SetRulePrioritiesError) -> Self
fn from(err: SetRulePrioritiesError) -> Self
Source§impl From<SetSecurityGroupsError> for Error
impl From<SetSecurityGroupsError> for Error
Source§fn from(err: SetSecurityGroupsError) -> Self
fn from(err: SetSecurityGroupsError) -> Self
Source§impl From<SetSubnetsError> for Error
impl From<SetSubnetsError> for Error
Source§fn from(err: SetSubnetsError) -> Self
fn from(err: SetSubnetsError) -> Self
Source§impl<O, E> From<WaiterError<O, E>> for Error
impl<O, E> From<WaiterError<O, E>> for Error
Source§fn from(err: WaiterError<O, E>) -> Self
fn from(err: WaiterError<O, E>) -> Self
Source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
Source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.bright_black());
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.bright_green());
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.bright_yellow());
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.bright_magenta());
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.bright_white());
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.on_bright_black());
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.on_bright_green());
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.on_bright_yellow());
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlue
.
§Example
println!("{}", value.on_bright_blue());
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.on_bright_magenta());
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightCyan
.
§Example
println!("{}", value.on_bright_cyan());
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.on_bright_white());
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::Underline
.
§Example
println!("{}", value.underline());
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::RapidBlink
.
§Example
println!("{}", value.rapid_blink());
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);