#[non_exhaustive]pub enum Error {
Show 18 variants
AccessDeniedException(AccessDeniedException),
AuthorizationException(AuthorizationException),
ConflictException(ConflictException),
EntitlementNotAllowedException(EntitlementNotAllowedException),
FailedDependencyException(FailedDependencyException),
FilterLimitExceededException(FilterLimitExceededException),
InvalidParameterValueException(InvalidParameterValueException),
InvalidResourceStateException(InvalidResourceStateException),
LicenseUsageException(LicenseUsageException),
NoEntitlementsAllowedException(NoEntitlementsAllowedException),
RateLimitExceededException(RateLimitExceededException),
RedirectException(RedirectException),
ResourceLimitExceededException(ResourceLimitExceededException),
ResourceNotFoundException(ResourceNotFoundException),
ServerInternalException(ServerInternalException),
UnsupportedDigitalSignatureMethodException(UnsupportedDigitalSignatureMethodException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
Access to resource denied.
AuthorizationException(AuthorizationException)
The Amazon Web Services user account does not have permission to perform the action. Check the IAM policy associated with this account.
ConflictException(ConflictException)
There was a conflict processing the request. Try your request again.
EntitlementNotAllowedException(EntitlementNotAllowedException)
The entitlement is not allowed.
FailedDependencyException(FailedDependencyException)
A dependency required to run the API is missing.
FilterLimitExceededException(FilterLimitExceededException)
The request uses too many filters or too many filter values.
InvalidParameterValueException(InvalidParameterValueException)
One or more parameter values are not valid.
InvalidResourceStateException(InvalidResourceStateException)
License Manager cannot allocate a license to a resource because of its state.
For example, you cannot allocate a license to an instance in the process of shutting down.
LicenseUsageException(LicenseUsageException)
You do not have enough licenses available to support a new resource launch.
NoEntitlementsAllowedException(NoEntitlementsAllowedException)
There are no entitlements found for this license, or the entitlement maximum count is reached.
RateLimitExceededException(RateLimitExceededException)
Too many requests have been submitted. Try again after a brief wait.
RedirectException(RedirectException)
This is not the correct Region for the resource. Try again.
ResourceLimitExceededException(ResourceLimitExceededException)
Your resource limits have been exceeded.
ResourceNotFoundException(ResourceNotFoundException)
The resource cannot be found.
ServerInternalException(ServerInternalException)
The server experienced an internal error. Try again.
UnsupportedDigitalSignatureMethodException(UnsupportedDigitalSignatureMethodException)
The digital signature method is unsupported. Try your request again.
ValidationException(ValidationException)
The provided input is not valid. Try your request again.
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<AcceptGrantError> for Error
impl From<AcceptGrantError> for Error
Source§fn from(err: AcceptGrantError) -> Self
fn from(err: AcceptGrantError) -> 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<CheckInLicenseError> for Error
impl From<CheckInLicenseError> for Error
Source§fn from(err: CheckInLicenseError) -> Self
fn from(err: CheckInLicenseError) -> Self
Source§impl From<CheckoutBorrowLicenseError> for Error
impl From<CheckoutBorrowLicenseError> for Error
Source§fn from(err: CheckoutBorrowLicenseError) -> Self
fn from(err: CheckoutBorrowLicenseError) -> Self
Source§impl From<CheckoutLicenseError> for Error
impl From<CheckoutLicenseError> for Error
Source§fn from(err: CheckoutLicenseError) -> Self
fn from(err: CheckoutLicenseError) -> Self
Source§impl From<CreateGrantError> for Error
impl From<CreateGrantError> for Error
Source§fn from(err: CreateGrantError) -> Self
fn from(err: CreateGrantError) -> Self
Source§impl From<CreateGrantVersionError> for Error
impl From<CreateGrantVersionError> for Error
Source§fn from(err: CreateGrantVersionError) -> Self
fn from(err: CreateGrantVersionError) -> Self
Source§impl From<CreateLicenseConfigurationError> for Error
impl From<CreateLicenseConfigurationError> for Error
Source§fn from(err: CreateLicenseConfigurationError) -> Self
fn from(err: CreateLicenseConfigurationError) -> Self
Source§impl From<CreateLicenseConversionTaskForResourceError> for Error
impl From<CreateLicenseConversionTaskForResourceError> for Error
Source§fn from(err: CreateLicenseConversionTaskForResourceError) -> Self
fn from(err: CreateLicenseConversionTaskForResourceError) -> Self
Source§impl From<CreateLicenseError> for Error
impl From<CreateLicenseError> for Error
Source§fn from(err: CreateLicenseError) -> Self
fn from(err: CreateLicenseError) -> Self
Source§impl From<CreateLicenseManagerReportGeneratorError> for Error
impl From<CreateLicenseManagerReportGeneratorError> for Error
Source§fn from(err: CreateLicenseManagerReportGeneratorError) -> Self
fn from(err: CreateLicenseManagerReportGeneratorError) -> Self
Source§impl From<CreateLicenseVersionError> for Error
impl From<CreateLicenseVersionError> for Error
Source§fn from(err: CreateLicenseVersionError) -> Self
fn from(err: CreateLicenseVersionError) -> Self
Source§impl From<CreateTokenError> for Error
impl From<CreateTokenError> for Error
Source§fn from(err: CreateTokenError) -> Self
fn from(err: CreateTokenError) -> Self
Source§impl From<DeleteGrantError> for Error
impl From<DeleteGrantError> for Error
Source§fn from(err: DeleteGrantError) -> Self
fn from(err: DeleteGrantError) -> Self
Source§impl From<DeleteLicenseConfigurationError> for Error
impl From<DeleteLicenseConfigurationError> for Error
Source§fn from(err: DeleteLicenseConfigurationError) -> Self
fn from(err: DeleteLicenseConfigurationError) -> Self
Source§impl From<DeleteLicenseError> for Error
impl From<DeleteLicenseError> for Error
Source§fn from(err: DeleteLicenseError) -> Self
fn from(err: DeleteLicenseError) -> Self
Source§impl From<DeleteLicenseManagerReportGeneratorError> for Error
impl From<DeleteLicenseManagerReportGeneratorError> for Error
Source§fn from(err: DeleteLicenseManagerReportGeneratorError) -> Self
fn from(err: DeleteLicenseManagerReportGeneratorError) -> Self
Source§impl From<DeleteTokenError> for Error
impl From<DeleteTokenError> for Error
Source§fn from(err: DeleteTokenError) -> Self
fn from(err: DeleteTokenError) -> Self
Source§impl From<ExtendLicenseConsumptionError> for Error
impl From<ExtendLicenseConsumptionError> for Error
Source§fn from(err: ExtendLicenseConsumptionError) -> Self
fn from(err: ExtendLicenseConsumptionError) -> Self
Source§impl From<GetAccessTokenError> for Error
impl From<GetAccessTokenError> for Error
Source§fn from(err: GetAccessTokenError) -> Self
fn from(err: GetAccessTokenError) -> Self
Source§impl From<GetGrantError> for Error
impl From<GetGrantError> for Error
Source§fn from(err: GetGrantError) -> Self
fn from(err: GetGrantError) -> Self
Source§impl From<GetLicenseConfigurationError> for Error
impl From<GetLicenseConfigurationError> for Error
Source§fn from(err: GetLicenseConfigurationError) -> Self
fn from(err: GetLicenseConfigurationError) -> Self
Source§impl From<GetLicenseConversionTaskError> for Error
impl From<GetLicenseConversionTaskError> for Error
Source§fn from(err: GetLicenseConversionTaskError) -> Self
fn from(err: GetLicenseConversionTaskError) -> Self
Source§impl From<GetLicenseError> for Error
impl From<GetLicenseError> for Error
Source§fn from(err: GetLicenseError) -> Self
fn from(err: GetLicenseError) -> Self
Source§impl From<GetLicenseManagerReportGeneratorError> for Error
impl From<GetLicenseManagerReportGeneratorError> for Error
Source§fn from(err: GetLicenseManagerReportGeneratorError) -> Self
fn from(err: GetLicenseManagerReportGeneratorError) -> Self
Source§impl From<GetLicenseUsageError> for Error
impl From<GetLicenseUsageError> for Error
Source§fn from(err: GetLicenseUsageError) -> Self
fn from(err: GetLicenseUsageError) -> Self
Source§impl From<GetServiceSettingsError> for Error
impl From<GetServiceSettingsError> for Error
Source§fn from(err: GetServiceSettingsError) -> Self
fn from(err: GetServiceSettingsError) -> Self
Source§impl From<ListAssociationsForLicenseConfigurationError> for Error
impl From<ListAssociationsForLicenseConfigurationError> for Error
Source§fn from(err: ListAssociationsForLicenseConfigurationError) -> Self
fn from(err: ListAssociationsForLicenseConfigurationError) -> Self
Source§impl From<ListDistributedGrantsError> for Error
impl From<ListDistributedGrantsError> for Error
Source§fn from(err: ListDistributedGrantsError) -> Self
fn from(err: ListDistributedGrantsError) -> Self
Source§impl From<ListFailuresForLicenseConfigurationOperationsError> for Error
impl From<ListFailuresForLicenseConfigurationOperationsError> for Error
Source§fn from(err: ListFailuresForLicenseConfigurationOperationsError) -> Self
fn from(err: ListFailuresForLicenseConfigurationOperationsError) -> Self
Source§impl From<ListLicenseConfigurationsError> for Error
impl From<ListLicenseConfigurationsError> for Error
Source§fn from(err: ListLicenseConfigurationsError) -> Self
fn from(err: ListLicenseConfigurationsError) -> Self
Source§impl From<ListLicenseConversionTasksError> for Error
impl From<ListLicenseConversionTasksError> for Error
Source§fn from(err: ListLicenseConversionTasksError) -> Self
fn from(err: ListLicenseConversionTasksError) -> Self
Source§impl From<ListLicenseManagerReportGeneratorsError> for Error
impl From<ListLicenseManagerReportGeneratorsError> for Error
Source§fn from(err: ListLicenseManagerReportGeneratorsError) -> Self
fn from(err: ListLicenseManagerReportGeneratorsError) -> Self
Source§impl From<ListLicenseSpecificationsForResourceError> for Error
impl From<ListLicenseSpecificationsForResourceError> for Error
Source§fn from(err: ListLicenseSpecificationsForResourceError) -> Self
fn from(err: ListLicenseSpecificationsForResourceError) -> Self
Source§impl From<ListLicenseVersionsError> for Error
impl From<ListLicenseVersionsError> for Error
Source§fn from(err: ListLicenseVersionsError) -> Self
fn from(err: ListLicenseVersionsError) -> Self
Source§impl From<ListLicensesError> for Error
impl From<ListLicensesError> for Error
Source§fn from(err: ListLicensesError) -> Self
fn from(err: ListLicensesError) -> Self
Source§impl From<ListReceivedGrantsError> for Error
impl From<ListReceivedGrantsError> for Error
Source§fn from(err: ListReceivedGrantsError) -> Self
fn from(err: ListReceivedGrantsError) -> Self
Source§impl From<ListReceivedGrantsForOrganizationError> for Error
impl From<ListReceivedGrantsForOrganizationError> for Error
Source§fn from(err: ListReceivedGrantsForOrganizationError) -> Self
fn from(err: ListReceivedGrantsForOrganizationError) -> Self
Source§impl From<ListReceivedLicensesError> for Error
impl From<ListReceivedLicensesError> for Error
Source§fn from(err: ListReceivedLicensesError) -> Self
fn from(err: ListReceivedLicensesError) -> Self
Source§impl From<ListReceivedLicensesForOrganizationError> for Error
impl From<ListReceivedLicensesForOrganizationError> for Error
Source§fn from(err: ListReceivedLicensesForOrganizationError) -> Self
fn from(err: ListReceivedLicensesForOrganizationError) -> Self
Source§impl From<ListResourceInventoryError> for Error
impl From<ListResourceInventoryError> for Error
Source§fn from(err: ListResourceInventoryError) -> Self
fn from(err: ListResourceInventoryError) -> 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<ListTokensError> for Error
impl From<ListTokensError> for Error
Source§fn from(err: ListTokensError) -> Self
fn from(err: ListTokensError) -> Self
Source§impl From<ListUsageForLicenseConfigurationError> for Error
impl From<ListUsageForLicenseConfigurationError> for Error
Source§fn from(err: ListUsageForLicenseConfigurationError) -> Self
fn from(err: ListUsageForLicenseConfigurationError) -> Self
Source§impl From<RejectGrantError> for Error
impl From<RejectGrantError> for Error
Source§fn from(err: RejectGrantError) -> Self
fn from(err: RejectGrantError) -> Self
Source§impl<R> From<SdkError<AcceptGrantError, R>> for Error
impl<R> From<SdkError<AcceptGrantError, R>> for Error
Source§fn from(err: SdkError<AcceptGrantError, R>) -> Self
fn from(err: SdkError<AcceptGrantError, R>) -> Self
Source§impl<R> From<SdkError<CheckInLicenseError, R>> for Error
impl<R> From<SdkError<CheckInLicenseError, R>> for Error
Source§fn from(err: SdkError<CheckInLicenseError, R>) -> Self
fn from(err: SdkError<CheckInLicenseError, R>) -> Self
Source§impl<R> From<SdkError<CheckoutBorrowLicenseError, R>> for Error
impl<R> From<SdkError<CheckoutBorrowLicenseError, R>> for Error
Source§fn from(err: SdkError<CheckoutBorrowLicenseError, R>) -> Self
fn from(err: SdkError<CheckoutBorrowLicenseError, R>) -> Self
Source§impl<R> From<SdkError<CheckoutLicenseError, R>> for Error
impl<R> From<SdkError<CheckoutLicenseError, R>> for Error
Source§fn from(err: SdkError<CheckoutLicenseError, R>) -> Self
fn from(err: SdkError<CheckoutLicenseError, R>) -> Self
Source§impl<R> From<SdkError<CreateGrantError, R>> for Error
impl<R> From<SdkError<CreateGrantError, R>> for Error
Source§fn from(err: SdkError<CreateGrantError, R>) -> Self
fn from(err: SdkError<CreateGrantError, R>) -> Self
Source§impl<R> From<SdkError<CreateGrantVersionError, R>> for Error
impl<R> From<SdkError<CreateGrantVersionError, R>> for Error
Source§fn from(err: SdkError<CreateGrantVersionError, R>) -> Self
fn from(err: SdkError<CreateGrantVersionError, R>) -> Self
Source§impl<R> From<SdkError<CreateLicenseConfigurationError, R>> for Error
impl<R> From<SdkError<CreateLicenseConfigurationError, R>> for Error
Source§fn from(err: SdkError<CreateLicenseConfigurationError, R>) -> Self
fn from(err: SdkError<CreateLicenseConfigurationError, R>) -> Self
Source§impl<R> From<SdkError<CreateLicenseConversionTaskForResourceError, R>> for Error
impl<R> From<SdkError<CreateLicenseConversionTaskForResourceError, R>> for Error
Source§fn from(err: SdkError<CreateLicenseConversionTaskForResourceError, R>) -> Self
fn from(err: SdkError<CreateLicenseConversionTaskForResourceError, R>) -> Self
Source§impl<R> From<SdkError<CreateLicenseError, R>> for Error
impl<R> From<SdkError<CreateLicenseError, R>> for Error
Source§fn from(err: SdkError<CreateLicenseError, R>) -> Self
fn from(err: SdkError<CreateLicenseError, R>) -> Self
Source§impl<R> From<SdkError<CreateLicenseManagerReportGeneratorError, R>> for Error
impl<R> From<SdkError<CreateLicenseManagerReportGeneratorError, R>> for Error
Source§fn from(err: SdkError<CreateLicenseManagerReportGeneratorError, R>) -> Self
fn from(err: SdkError<CreateLicenseManagerReportGeneratorError, R>) -> Self
Source§impl<R> From<SdkError<CreateLicenseVersionError, R>> for Error
impl<R> From<SdkError<CreateLicenseVersionError, R>> for Error
Source§fn from(err: SdkError<CreateLicenseVersionError, R>) -> Self
fn from(err: SdkError<CreateLicenseVersionError, R>) -> Self
Source§impl<R> From<SdkError<CreateTokenError, R>> for Error
impl<R> From<SdkError<CreateTokenError, R>> for Error
Source§fn from(err: SdkError<CreateTokenError, R>) -> Self
fn from(err: SdkError<CreateTokenError, R>) -> Self
Source§impl<R> From<SdkError<DeleteGrantError, R>> for Error
impl<R> From<SdkError<DeleteGrantError, R>> for Error
Source§fn from(err: SdkError<DeleteGrantError, R>) -> Self
fn from(err: SdkError<DeleteGrantError, R>) -> Self
Source§impl<R> From<SdkError<DeleteLicenseConfigurationError, R>> for Error
impl<R> From<SdkError<DeleteLicenseConfigurationError, R>> for Error
Source§fn from(err: SdkError<DeleteLicenseConfigurationError, R>) -> Self
fn from(err: SdkError<DeleteLicenseConfigurationError, R>) -> Self
Source§impl<R> From<SdkError<DeleteLicenseError, R>> for Error
impl<R> From<SdkError<DeleteLicenseError, R>> for Error
Source§fn from(err: SdkError<DeleteLicenseError, R>) -> Self
fn from(err: SdkError<DeleteLicenseError, R>) -> Self
Source§impl<R> From<SdkError<DeleteLicenseManagerReportGeneratorError, R>> for Error
impl<R> From<SdkError<DeleteLicenseManagerReportGeneratorError, R>> for Error
Source§fn from(err: SdkError<DeleteLicenseManagerReportGeneratorError, R>) -> Self
fn from(err: SdkError<DeleteLicenseManagerReportGeneratorError, R>) -> Self
Source§impl<R> From<SdkError<DeleteTokenError, R>> for Error
impl<R> From<SdkError<DeleteTokenError, R>> for Error
Source§fn from(err: SdkError<DeleteTokenError, R>) -> Self
fn from(err: SdkError<DeleteTokenError, R>) -> Self
Source§impl<R> From<SdkError<ExtendLicenseConsumptionError, R>> for Error
impl<R> From<SdkError<ExtendLicenseConsumptionError, R>> for Error
Source§fn from(err: SdkError<ExtendLicenseConsumptionError, R>) -> Self
fn from(err: SdkError<ExtendLicenseConsumptionError, R>) -> Self
Source§impl<R> From<SdkError<GetAccessTokenError, R>> for Error
impl<R> From<SdkError<GetAccessTokenError, R>> for Error
Source§fn from(err: SdkError<GetAccessTokenError, R>) -> Self
fn from(err: SdkError<GetAccessTokenError, R>) -> Self
Source§impl<R> From<SdkError<GetGrantError, R>> for Error
impl<R> From<SdkError<GetGrantError, R>> for Error
Source§fn from(err: SdkError<GetGrantError, R>) -> Self
fn from(err: SdkError<GetGrantError, R>) -> Self
Source§impl<R> From<SdkError<GetLicenseConfigurationError, R>> for Error
impl<R> From<SdkError<GetLicenseConfigurationError, R>> for Error
Source§fn from(err: SdkError<GetLicenseConfigurationError, R>) -> Self
fn from(err: SdkError<GetLicenseConfigurationError, R>) -> Self
Source§impl<R> From<SdkError<GetLicenseConversionTaskError, R>> for Error
impl<R> From<SdkError<GetLicenseConversionTaskError, R>> for Error
Source§fn from(err: SdkError<GetLicenseConversionTaskError, R>) -> Self
fn from(err: SdkError<GetLicenseConversionTaskError, R>) -> Self
Source§impl<R> From<SdkError<GetLicenseError, R>> for Error
impl<R> From<SdkError<GetLicenseError, R>> for Error
Source§fn from(err: SdkError<GetLicenseError, R>) -> Self
fn from(err: SdkError<GetLicenseError, R>) -> Self
Source§impl<R> From<SdkError<GetLicenseManagerReportGeneratorError, R>> for Error
impl<R> From<SdkError<GetLicenseManagerReportGeneratorError, R>> for Error
Source§fn from(err: SdkError<GetLicenseManagerReportGeneratorError, R>) -> Self
fn from(err: SdkError<GetLicenseManagerReportGeneratorError, R>) -> Self
Source§impl<R> From<SdkError<GetLicenseUsageError, R>> for Error
impl<R> From<SdkError<GetLicenseUsageError, R>> for Error
Source§fn from(err: SdkError<GetLicenseUsageError, R>) -> Self
fn from(err: SdkError<GetLicenseUsageError, R>) -> Self
Source§impl<R> From<SdkError<GetServiceSettingsError, R>> for Error
impl<R> From<SdkError<GetServiceSettingsError, R>> for Error
Source§fn from(err: SdkError<GetServiceSettingsError, R>) -> Self
fn from(err: SdkError<GetServiceSettingsError, R>) -> Self
Source§impl<R> From<SdkError<ListAssociationsForLicenseConfigurationError, R>> for Error
impl<R> From<SdkError<ListAssociationsForLicenseConfigurationError, R>> for Error
Source§fn from(err: SdkError<ListAssociationsForLicenseConfigurationError, R>) -> Self
fn from(err: SdkError<ListAssociationsForLicenseConfigurationError, R>) -> Self
Source§impl<R> From<SdkError<ListDistributedGrantsError, R>> for Error
impl<R> From<SdkError<ListDistributedGrantsError, R>> for Error
Source§fn from(err: SdkError<ListDistributedGrantsError, R>) -> Self
fn from(err: SdkError<ListDistributedGrantsError, R>) -> Self
Source§impl<R> From<SdkError<ListFailuresForLicenseConfigurationOperationsError, R>> for Error
impl<R> From<SdkError<ListFailuresForLicenseConfigurationOperationsError, R>> for Error
Source§fn from(
err: SdkError<ListFailuresForLicenseConfigurationOperationsError, R>,
) -> Self
fn from( err: SdkError<ListFailuresForLicenseConfigurationOperationsError, R>, ) -> Self
Source§impl<R> From<SdkError<ListLicenseConfigurationsError, R>> for Error
impl<R> From<SdkError<ListLicenseConfigurationsError, R>> for Error
Source§fn from(err: SdkError<ListLicenseConfigurationsError, R>) -> Self
fn from(err: SdkError<ListLicenseConfigurationsError, R>) -> Self
Source§impl<R> From<SdkError<ListLicenseConversionTasksError, R>> for Error
impl<R> From<SdkError<ListLicenseConversionTasksError, R>> for Error
Source§fn from(err: SdkError<ListLicenseConversionTasksError, R>) -> Self
fn from(err: SdkError<ListLicenseConversionTasksError, R>) -> Self
Source§impl<R> From<SdkError<ListLicenseManagerReportGeneratorsError, R>> for Error
impl<R> From<SdkError<ListLicenseManagerReportGeneratorsError, R>> for Error
Source§fn from(err: SdkError<ListLicenseManagerReportGeneratorsError, R>) -> Self
fn from(err: SdkError<ListLicenseManagerReportGeneratorsError, R>) -> Self
Source§impl<R> From<SdkError<ListLicenseSpecificationsForResourceError, R>> for Error
impl<R> From<SdkError<ListLicenseSpecificationsForResourceError, R>> for Error
Source§fn from(err: SdkError<ListLicenseSpecificationsForResourceError, R>) -> Self
fn from(err: SdkError<ListLicenseSpecificationsForResourceError, R>) -> Self
Source§impl<R> From<SdkError<ListLicenseVersionsError, R>> for Error
impl<R> From<SdkError<ListLicenseVersionsError, R>> for Error
Source§fn from(err: SdkError<ListLicenseVersionsError, R>) -> Self
fn from(err: SdkError<ListLicenseVersionsError, R>) -> Self
Source§impl<R> From<SdkError<ListLicensesError, R>> for Error
impl<R> From<SdkError<ListLicensesError, R>> for Error
Source§fn from(err: SdkError<ListLicensesError, R>) -> Self
fn from(err: SdkError<ListLicensesError, R>) -> Self
Source§impl<R> From<SdkError<ListReceivedGrantsError, R>> for Error
impl<R> From<SdkError<ListReceivedGrantsError, R>> for Error
Source§fn from(err: SdkError<ListReceivedGrantsError, R>) -> Self
fn from(err: SdkError<ListReceivedGrantsError, R>) -> Self
Source§impl<R> From<SdkError<ListReceivedGrantsForOrganizationError, R>> for Error
impl<R> From<SdkError<ListReceivedGrantsForOrganizationError, R>> for Error
Source§fn from(err: SdkError<ListReceivedGrantsForOrganizationError, R>) -> Self
fn from(err: SdkError<ListReceivedGrantsForOrganizationError, R>) -> Self
Source§impl<R> From<SdkError<ListReceivedLicensesError, R>> for Error
impl<R> From<SdkError<ListReceivedLicensesError, R>> for Error
Source§fn from(err: SdkError<ListReceivedLicensesError, R>) -> Self
fn from(err: SdkError<ListReceivedLicensesError, R>) -> Self
Source§impl<R> From<SdkError<ListReceivedLicensesForOrganizationError, R>> for Error
impl<R> From<SdkError<ListReceivedLicensesForOrganizationError, R>> for Error
Source§fn from(err: SdkError<ListReceivedLicensesForOrganizationError, R>) -> Self
fn from(err: SdkError<ListReceivedLicensesForOrganizationError, R>) -> Self
Source§impl<R> From<SdkError<ListResourceInventoryError, R>> for Error
impl<R> From<SdkError<ListResourceInventoryError, R>> for Error
Source§fn from(err: SdkError<ListResourceInventoryError, R>) -> Self
fn from(err: SdkError<ListResourceInventoryError, 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<ListTokensError, R>> for Error
impl<R> From<SdkError<ListTokensError, R>> for Error
Source§fn from(err: SdkError<ListTokensError, R>) -> Self
fn from(err: SdkError<ListTokensError, R>) -> Self
Source§impl<R> From<SdkError<ListUsageForLicenseConfigurationError, R>> for Error
impl<R> From<SdkError<ListUsageForLicenseConfigurationError, R>> for Error
Source§fn from(err: SdkError<ListUsageForLicenseConfigurationError, R>) -> Self
fn from(err: SdkError<ListUsageForLicenseConfigurationError, R>) -> Self
Source§impl<R> From<SdkError<RejectGrantError, R>> for Error
impl<R> From<SdkError<RejectGrantError, R>> for Error
Source§fn from(err: SdkError<RejectGrantError, R>) -> Self
fn from(err: SdkError<RejectGrantError, 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<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
Source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Source§impl<R> From<SdkError<UpdateLicenseConfigurationError, R>> for Error
impl<R> From<SdkError<UpdateLicenseConfigurationError, R>> for Error
Source§fn from(err: SdkError<UpdateLicenseConfigurationError, R>) -> Self
fn from(err: SdkError<UpdateLicenseConfigurationError, R>) -> Self
Source§impl<R> From<SdkError<UpdateLicenseManagerReportGeneratorError, R>> for Error
impl<R> From<SdkError<UpdateLicenseManagerReportGeneratorError, R>> for Error
Source§fn from(err: SdkError<UpdateLicenseManagerReportGeneratorError, R>) -> Self
fn from(err: SdkError<UpdateLicenseManagerReportGeneratorError, R>) -> Self
Source§impl<R> From<SdkError<UpdateLicenseSpecificationsForResourceError, R>> for Error
impl<R> From<SdkError<UpdateLicenseSpecificationsForResourceError, R>> for Error
Source§fn from(err: SdkError<UpdateLicenseSpecificationsForResourceError, R>) -> Self
fn from(err: SdkError<UpdateLicenseSpecificationsForResourceError, R>) -> Self
Source§impl<R> From<SdkError<UpdateServiceSettingsError, R>> for Error
impl<R> From<SdkError<UpdateServiceSettingsError, R>> for Error
Source§fn from(err: SdkError<UpdateServiceSettingsError, R>) -> Self
fn from(err: SdkError<UpdateServiceSettingsError, R>) -> 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<UntagResourceError> for Error
impl From<UntagResourceError> for Error
Source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
Source§impl From<UpdateLicenseConfigurationError> for Error
impl From<UpdateLicenseConfigurationError> for Error
Source§fn from(err: UpdateLicenseConfigurationError) -> Self
fn from(err: UpdateLicenseConfigurationError) -> Self
Source§impl From<UpdateLicenseManagerReportGeneratorError> for Error
impl From<UpdateLicenseManagerReportGeneratorError> for Error
Source§fn from(err: UpdateLicenseManagerReportGeneratorError) -> Self
fn from(err: UpdateLicenseManagerReportGeneratorError) -> Self
Source§impl From<UpdateLicenseSpecificationsForResourceError> for Error
impl From<UpdateLicenseSpecificationsForResourceError> for Error
Source§fn from(err: UpdateLicenseSpecificationsForResourceError) -> Self
fn from(err: UpdateLicenseSpecificationsForResourceError) -> Self
Source§impl From<UpdateServiceSettingsError> for Error
impl From<UpdateServiceSettingsError> for Error
Source§fn from(err: UpdateServiceSettingsError) -> Self
fn from(err: UpdateServiceSettingsError) -> 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);