#[non_exhaustive]pub enum Error {
Show 39 variants
CodeSigningConfigNotFoundException(CodeSigningConfigNotFoundException),
CodeStorageExceededException(CodeStorageExceededException),
CodeVerificationFailedException(CodeVerificationFailedException),
Ec2AccessDeniedException(Ec2AccessDeniedException),
Ec2ThrottledException(Ec2ThrottledException),
Ec2UnexpectedException(Ec2UnexpectedException),
EfsioException(EfsioException),
EfsMountConnectivityException(EfsMountConnectivityException),
EfsMountFailureException(EfsMountFailureException),
EfsMountTimeoutException(EfsMountTimeoutException),
EniLimitReachedException(EniLimitReachedException),
InvalidCodeSignatureException(InvalidCodeSignatureException),
InvalidParameterValueException(InvalidParameterValueException),
InvalidRequestContentException(InvalidRequestContentException),
InvalidRuntimeException(InvalidRuntimeException),
InvalidSecurityGroupIdException(InvalidSecurityGroupIdException),
InvalidSubnetIdException(InvalidSubnetIdException),
InvalidZipFileException(InvalidZipFileException),
KmsAccessDeniedException(KmsAccessDeniedException),
KmsDisabledException(KmsDisabledException),
KmsInvalidStateException(KmsInvalidStateException),
KmsNotFoundException(KmsNotFoundException),
PolicyLengthExceededException(PolicyLengthExceededException),
PreconditionFailedException(PreconditionFailedException),
ProvisionedConcurrencyConfigNotFoundException(ProvisionedConcurrencyConfigNotFoundException),
RecursiveInvocationException(RecursiveInvocationException),
RequestTooLargeException(RequestTooLargeException),
ResourceConflictException(ResourceConflictException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceNotReadyException(ResourceNotReadyException),
ServiceException(ServiceException),
SnapStartException(SnapStartException),
SnapStartNotReadyException(SnapStartNotReadyException),
SnapStartTimeoutException(SnapStartTimeoutException),
SubnetIpAddressLimitReachedException(SubnetIpAddressLimitReachedException),
TooManyRequestsException(TooManyRequestsException),
UnsupportedMediaTypeException(UnsupportedMediaTypeException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CodeSigningConfigNotFoundException(CodeSigningConfigNotFoundException)
The specified code signing configuration does not exist.
CodeStorageExceededException(CodeStorageExceededException)
Your Amazon Web Services account has exceeded its maximum total code size. For more information, see Lambda quotas.
CodeVerificationFailedException(CodeVerificationFailedException)
The code signature failed one or more of the validation checks for signature mismatch or expiry, and the code signing policy is set to ENFORCE. Lambda blocks the deployment.
Ec2AccessDeniedException(Ec2AccessDeniedException)
Need additional permissions to configure VPC settings.
Ec2ThrottledException(Ec2ThrottledException)
Amazon EC2 throttled Lambda during Lambda function initialization using the execution role provided for the function.
Ec2UnexpectedException(Ec2UnexpectedException)
Lambda received an unexpected Amazon EC2 client exception while setting up for the Lambda function.
EfsioException(EfsioException)
An error occurred when reading from or writing to a connected file system.
EfsMountConnectivityException(EfsMountConnectivityException)
The Lambda function couldn't make a network connection to the configured file system.
EfsMountFailureException(EfsMountFailureException)
The Lambda function couldn't mount the configured file system due to a permission or configuration issue.
EfsMountTimeoutException(EfsMountTimeoutException)
The Lambda function made a network connection to the configured file system, but the mount operation timed out.
EniLimitReachedException(EniLimitReachedException)
Lambda couldn't create an elastic network interface in the VPC, specified as part of Lambda function configuration, because the limit for network interfaces has been reached. For more information, see Lambda quotas.
InvalidCodeSignatureException(InvalidCodeSignatureException)
The code signature failed the integrity check. If the integrity check fails, then Lambda blocks deployment, even if the code signing policy is set to WARN.
InvalidParameterValueException(InvalidParameterValueException)
One of the parameters in the request is not valid.
InvalidRequestContentException(InvalidRequestContentException)
The request body could not be parsed as JSON, or a request header is invalid. For example, the 'x-amzn-RequestId' header is not a valid UUID string.
InvalidRuntimeException(InvalidRuntimeException)
The runtime or runtime version specified is not supported.
InvalidSecurityGroupIdException(InvalidSecurityGroupIdException)
The security group ID provided in the Lambda function VPC configuration is not valid.
InvalidSubnetIdException(InvalidSubnetIdException)
The subnet ID provided in the Lambda function VPC configuration is not valid.
InvalidZipFileException(InvalidZipFileException)
Lambda could not unzip the deployment package.
KmsAccessDeniedException(KmsAccessDeniedException)
Lambda couldn't decrypt the environment variables because KMS access was denied. Check the Lambda function's KMS permissions.
KmsDisabledException(KmsDisabledException)
Lambda couldn't decrypt the environment variables because the KMS key used is disabled. Check the Lambda function's KMS key settings.
KmsInvalidStateException(KmsInvalidStateException)
Lambda couldn't decrypt the environment variables because the state of the KMS key used is not valid for Decrypt. Check the function's KMS key settings.
KmsNotFoundException(KmsNotFoundException)
Lambda couldn't decrypt the environment variables because the KMS key was not found. Check the function's KMS key settings.
PolicyLengthExceededException(PolicyLengthExceededException)
The permissions policy for the resource is too large. For more information, see Lambda quotas.
PreconditionFailedException(PreconditionFailedException)
The RevisionId provided does not match the latest RevisionId for the Lambda function or alias.
-
For AddPermission and RemovePermission API operations: Call
GetPolicy
to retrieve the latest RevisionId for your resource. -
For all other API operations: Call
GetFunction
orGetAlias
to retrieve the latest RevisionId for your resource.
ProvisionedConcurrencyConfigNotFoundException(ProvisionedConcurrencyConfigNotFoundException)
The specified configuration does not exist.
RecursiveInvocationException(RecursiveInvocationException)
Lambda has detected your function being invoked in a recursive loop with other Amazon Web Services resources and stopped your function's invocation.
RequestTooLargeException(RequestTooLargeException)
The request payload exceeded the Invoke
request body JSON input quota. For more information, see Lambda quotas.
ResourceConflictException(ResourceConflictException)
The resource already exists, or another operation is in progress.
ResourceInUseException(ResourceInUseException)
The operation conflicts with the resource's availability. For example, you tried to update an event source mapping in the CREATING state, or you tried to delete an event source mapping currently UPDATING.
ResourceNotFoundException(ResourceNotFoundException)
The resource specified in the request does not exist.
ResourceNotReadyException(ResourceNotReadyException)
The function is inactive and its VPC connection is no longer available. Wait for the VPC connection to reestablish and try again.
ServiceException(ServiceException)
The Lambda service encountered an internal error.
SnapStartException(SnapStartException)
The afterRestore()
runtime hook encountered an error. For more information, check the Amazon CloudWatch logs.
SnapStartNotReadyException(SnapStartNotReadyException)
Lambda is initializing your function. You can invoke the function when the function state becomes Active
.
SnapStartTimeoutException(SnapStartTimeoutException)
Lambda couldn't restore the snapshot within the timeout limit.
SubnetIpAddressLimitReachedException(SubnetIpAddressLimitReachedException)
Lambda couldn't set up VPC access for the Lambda function because one or more configured subnets has no available IP addresses.
TooManyRequestsException(TooManyRequestsException)
The request throughput limit was exceeded. For more information, see Lambda quotas.
UnsupportedMediaTypeException(UnsupportedMediaTypeException)
The content type of the Invoke
request body is not JSON.
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<AddLayerVersionPermissionError> for Error
impl From<AddLayerVersionPermissionError> for Error
Source§fn from(err: AddLayerVersionPermissionError) -> Self
fn from(err: AddLayerVersionPermissionError) -> Self
Source§impl From<AddPermissionError> for Error
impl From<AddPermissionError> for Error
Source§fn from(err: AddPermissionError) -> Self
fn from(err: AddPermissionError) -> 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<CreateAliasError> for Error
impl From<CreateAliasError> for Error
Source§fn from(err: CreateAliasError) -> Self
fn from(err: CreateAliasError) -> Self
Source§impl From<CreateCodeSigningConfigError> for Error
impl From<CreateCodeSigningConfigError> for Error
Source§fn from(err: CreateCodeSigningConfigError) -> Self
fn from(err: CreateCodeSigningConfigError) -> Self
Source§impl From<CreateEventSourceMappingError> for Error
impl From<CreateEventSourceMappingError> for Error
Source§fn from(err: CreateEventSourceMappingError) -> Self
fn from(err: CreateEventSourceMappingError) -> Self
Source§impl From<CreateFunctionError> for Error
impl From<CreateFunctionError> for Error
Source§fn from(err: CreateFunctionError) -> Self
fn from(err: CreateFunctionError) -> Self
Source§impl From<CreateFunctionUrlConfigError> for Error
impl From<CreateFunctionUrlConfigError> for Error
Source§fn from(err: CreateFunctionUrlConfigError) -> Self
fn from(err: CreateFunctionUrlConfigError) -> Self
Source§impl From<DeleteAliasError> for Error
impl From<DeleteAliasError> for Error
Source§fn from(err: DeleteAliasError) -> Self
fn from(err: DeleteAliasError) -> Self
Source§impl From<DeleteCodeSigningConfigError> for Error
impl From<DeleteCodeSigningConfigError> for Error
Source§fn from(err: DeleteCodeSigningConfigError) -> Self
fn from(err: DeleteCodeSigningConfigError) -> Self
Source§impl From<DeleteEventSourceMappingError> for Error
impl From<DeleteEventSourceMappingError> for Error
Source§fn from(err: DeleteEventSourceMappingError) -> Self
fn from(err: DeleteEventSourceMappingError) -> Self
Source§impl From<DeleteFunctionCodeSigningConfigError> for Error
impl From<DeleteFunctionCodeSigningConfigError> for Error
Source§fn from(err: DeleteFunctionCodeSigningConfigError) -> Self
fn from(err: DeleteFunctionCodeSigningConfigError) -> Self
Source§impl From<DeleteFunctionConcurrencyError> for Error
impl From<DeleteFunctionConcurrencyError> for Error
Source§fn from(err: DeleteFunctionConcurrencyError) -> Self
fn from(err: DeleteFunctionConcurrencyError) -> Self
Source§impl From<DeleteFunctionError> for Error
impl From<DeleteFunctionError> for Error
Source§fn from(err: DeleteFunctionError) -> Self
fn from(err: DeleteFunctionError) -> Self
Source§impl From<DeleteFunctionEventInvokeConfigError> for Error
impl From<DeleteFunctionEventInvokeConfigError> for Error
Source§fn from(err: DeleteFunctionEventInvokeConfigError) -> Self
fn from(err: DeleteFunctionEventInvokeConfigError) -> Self
Source§impl From<DeleteFunctionUrlConfigError> for Error
impl From<DeleteFunctionUrlConfigError> for Error
Source§fn from(err: DeleteFunctionUrlConfigError) -> Self
fn from(err: DeleteFunctionUrlConfigError) -> Self
Source§impl From<DeleteLayerVersionError> for Error
impl From<DeleteLayerVersionError> for Error
Source§fn from(err: DeleteLayerVersionError) -> Self
fn from(err: DeleteLayerVersionError) -> Self
Source§impl From<DeleteProvisionedConcurrencyConfigError> for Error
impl From<DeleteProvisionedConcurrencyConfigError> for Error
Source§fn from(err: DeleteProvisionedConcurrencyConfigError) -> Self
fn from(err: DeleteProvisionedConcurrencyConfigError) -> Self
Source§impl From<GetAccountSettingsError> for Error
impl From<GetAccountSettingsError> for Error
Source§fn from(err: GetAccountSettingsError) -> Self
fn from(err: GetAccountSettingsError) -> Self
Source§impl From<GetAliasError> for Error
impl From<GetAliasError> for Error
Source§fn from(err: GetAliasError) -> Self
fn from(err: GetAliasError) -> Self
Source§impl From<GetCodeSigningConfigError> for Error
impl From<GetCodeSigningConfigError> for Error
Source§fn from(err: GetCodeSigningConfigError) -> Self
fn from(err: GetCodeSigningConfigError) -> Self
Source§impl From<GetEventSourceMappingError> for Error
impl From<GetEventSourceMappingError> for Error
Source§fn from(err: GetEventSourceMappingError) -> Self
fn from(err: GetEventSourceMappingError) -> Self
Source§impl From<GetFunctionCodeSigningConfigError> for Error
impl From<GetFunctionCodeSigningConfigError> for Error
Source§fn from(err: GetFunctionCodeSigningConfigError) -> Self
fn from(err: GetFunctionCodeSigningConfigError) -> Self
Source§impl From<GetFunctionConcurrencyError> for Error
impl From<GetFunctionConcurrencyError> for Error
Source§fn from(err: GetFunctionConcurrencyError) -> Self
fn from(err: GetFunctionConcurrencyError) -> Self
Source§impl From<GetFunctionConfigurationError> for Error
impl From<GetFunctionConfigurationError> for Error
Source§fn from(err: GetFunctionConfigurationError) -> Self
fn from(err: GetFunctionConfigurationError) -> Self
Source§impl From<GetFunctionError> for Error
impl From<GetFunctionError> for Error
Source§fn from(err: GetFunctionError) -> Self
fn from(err: GetFunctionError) -> Self
Source§impl From<GetFunctionEventInvokeConfigError> for Error
impl From<GetFunctionEventInvokeConfigError> for Error
Source§fn from(err: GetFunctionEventInvokeConfigError) -> Self
fn from(err: GetFunctionEventInvokeConfigError) -> Self
Source§impl From<GetFunctionRecursionConfigError> for Error
impl From<GetFunctionRecursionConfigError> for Error
Source§fn from(err: GetFunctionRecursionConfigError) -> Self
fn from(err: GetFunctionRecursionConfigError) -> Self
Source§impl From<GetFunctionUrlConfigError> for Error
impl From<GetFunctionUrlConfigError> for Error
Source§fn from(err: GetFunctionUrlConfigError) -> Self
fn from(err: GetFunctionUrlConfigError) -> Self
Source§impl From<GetLayerVersionByArnError> for Error
impl From<GetLayerVersionByArnError> for Error
Source§fn from(err: GetLayerVersionByArnError) -> Self
fn from(err: GetLayerVersionByArnError) -> Self
Source§impl From<GetLayerVersionError> for Error
impl From<GetLayerVersionError> for Error
Source§fn from(err: GetLayerVersionError) -> Self
fn from(err: GetLayerVersionError) -> Self
Source§impl From<GetLayerVersionPolicyError> for Error
impl From<GetLayerVersionPolicyError> for Error
Source§fn from(err: GetLayerVersionPolicyError) -> Self
fn from(err: GetLayerVersionPolicyError) -> Self
Source§impl From<GetPolicyError> for Error
impl From<GetPolicyError> for Error
Source§fn from(err: GetPolicyError) -> Self
fn from(err: GetPolicyError) -> Self
Source§impl From<GetProvisionedConcurrencyConfigError> for Error
impl From<GetProvisionedConcurrencyConfigError> for Error
Source§fn from(err: GetProvisionedConcurrencyConfigError) -> Self
fn from(err: GetProvisionedConcurrencyConfigError) -> Self
Source§impl From<GetRuntimeManagementConfigError> for Error
impl From<GetRuntimeManagementConfigError> for Error
Source§fn from(err: GetRuntimeManagementConfigError) -> Self
fn from(err: GetRuntimeManagementConfigError) -> Self
Source§impl From<InvokeAsyncError> for Error
impl From<InvokeAsyncError> for Error
Source§fn from(err: InvokeAsyncError) -> Self
fn from(err: InvokeAsyncError) -> Self
Source§impl From<InvokeError> for Error
impl From<InvokeError> for Error
Source§fn from(err: InvokeError) -> Self
fn from(err: InvokeError) -> Self
Source§impl From<InvokeWithResponseStreamError> for Error
impl From<InvokeWithResponseStreamError> for Error
Source§fn from(err: InvokeWithResponseStreamError) -> Self
fn from(err: InvokeWithResponseStreamError) -> Self
Source§impl From<InvokeWithResponseStreamResponseEventError> for Error
impl From<InvokeWithResponseStreamResponseEventError> for Error
Source§fn from(err: InvokeWithResponseStreamResponseEventError) -> Self
fn from(err: InvokeWithResponseStreamResponseEventError) -> Self
Source§impl From<ListAliasesError> for Error
impl From<ListAliasesError> for Error
Source§fn from(err: ListAliasesError) -> Self
fn from(err: ListAliasesError) -> Self
Source§impl From<ListCodeSigningConfigsError> for Error
impl From<ListCodeSigningConfigsError> for Error
Source§fn from(err: ListCodeSigningConfigsError) -> Self
fn from(err: ListCodeSigningConfigsError) -> Self
Source§impl From<ListEventSourceMappingsError> for Error
impl From<ListEventSourceMappingsError> for Error
Source§fn from(err: ListEventSourceMappingsError) -> Self
fn from(err: ListEventSourceMappingsError) -> Self
Source§impl From<ListFunctionEventInvokeConfigsError> for Error
impl From<ListFunctionEventInvokeConfigsError> for Error
Source§fn from(err: ListFunctionEventInvokeConfigsError) -> Self
fn from(err: ListFunctionEventInvokeConfigsError) -> Self
Source§impl From<ListFunctionUrlConfigsError> for Error
impl From<ListFunctionUrlConfigsError> for Error
Source§fn from(err: ListFunctionUrlConfigsError) -> Self
fn from(err: ListFunctionUrlConfigsError) -> Self
Source§impl From<ListFunctionsByCodeSigningConfigError> for Error
impl From<ListFunctionsByCodeSigningConfigError> for Error
Source§fn from(err: ListFunctionsByCodeSigningConfigError) -> Self
fn from(err: ListFunctionsByCodeSigningConfigError) -> Self
Source§impl From<ListFunctionsError> for Error
impl From<ListFunctionsError> for Error
Source§fn from(err: ListFunctionsError) -> Self
fn from(err: ListFunctionsError) -> Self
Source§impl From<ListLayerVersionsError> for Error
impl From<ListLayerVersionsError> for Error
Source§fn from(err: ListLayerVersionsError) -> Self
fn from(err: ListLayerVersionsError) -> Self
Source§impl From<ListLayersError> for Error
impl From<ListLayersError> for Error
Source§fn from(err: ListLayersError) -> Self
fn from(err: ListLayersError) -> Self
Source§impl From<ListProvisionedConcurrencyConfigsError> for Error
impl From<ListProvisionedConcurrencyConfigsError> for Error
Source§fn from(err: ListProvisionedConcurrencyConfigsError) -> Self
fn from(err: ListProvisionedConcurrencyConfigsError) -> Self
Source§impl From<ListTagsError> for Error
impl From<ListTagsError> for Error
Source§fn from(err: ListTagsError) -> Self
fn from(err: ListTagsError) -> Self
Source§impl From<ListVersionsByFunctionError> for Error
impl From<ListVersionsByFunctionError> for Error
Source§fn from(err: ListVersionsByFunctionError) -> Self
fn from(err: ListVersionsByFunctionError) -> Self
Source§impl From<PublishLayerVersionError> for Error
impl From<PublishLayerVersionError> for Error
Source§fn from(err: PublishLayerVersionError) -> Self
fn from(err: PublishLayerVersionError) -> Self
Source§impl From<PublishVersionError> for Error
impl From<PublishVersionError> for Error
Source§fn from(err: PublishVersionError) -> Self
fn from(err: PublishVersionError) -> Self
Source§impl From<PutFunctionCodeSigningConfigError> for Error
impl From<PutFunctionCodeSigningConfigError> for Error
Source§fn from(err: PutFunctionCodeSigningConfigError) -> Self
fn from(err: PutFunctionCodeSigningConfigError) -> Self
Source§impl From<PutFunctionConcurrencyError> for Error
impl From<PutFunctionConcurrencyError> for Error
Source§fn from(err: PutFunctionConcurrencyError) -> Self
fn from(err: PutFunctionConcurrencyError) -> Self
Source§impl From<PutFunctionEventInvokeConfigError> for Error
impl From<PutFunctionEventInvokeConfigError> for Error
Source§fn from(err: PutFunctionEventInvokeConfigError) -> Self
fn from(err: PutFunctionEventInvokeConfigError) -> Self
Source§impl From<PutFunctionRecursionConfigError> for Error
impl From<PutFunctionRecursionConfigError> for Error
Source§fn from(err: PutFunctionRecursionConfigError) -> Self
fn from(err: PutFunctionRecursionConfigError) -> Self
Source§impl From<PutProvisionedConcurrencyConfigError> for Error
impl From<PutProvisionedConcurrencyConfigError> for Error
Source§fn from(err: PutProvisionedConcurrencyConfigError) -> Self
fn from(err: PutProvisionedConcurrencyConfigError) -> Self
Source§impl From<PutRuntimeManagementConfigError> for Error
impl From<PutRuntimeManagementConfigError> for Error
Source§fn from(err: PutRuntimeManagementConfigError) -> Self
fn from(err: PutRuntimeManagementConfigError) -> Self
Source§impl From<RemoveLayerVersionPermissionError> for Error
impl From<RemoveLayerVersionPermissionError> for Error
Source§fn from(err: RemoveLayerVersionPermissionError) -> Self
fn from(err: RemoveLayerVersionPermissionError) -> Self
Source§impl From<RemovePermissionError> for Error
impl From<RemovePermissionError> for Error
Source§fn from(err: RemovePermissionError) -> Self
fn from(err: RemovePermissionError) -> Self
Source§impl<R> From<SdkError<AddLayerVersionPermissionError, R>> for Error
impl<R> From<SdkError<AddLayerVersionPermissionError, R>> for Error
Source§fn from(err: SdkError<AddLayerVersionPermissionError, R>) -> Self
fn from(err: SdkError<AddLayerVersionPermissionError, R>) -> Self
Source§impl<R> From<SdkError<AddPermissionError, R>> for Error
impl<R> From<SdkError<AddPermissionError, R>> for Error
Source§fn from(err: SdkError<AddPermissionError, R>) -> Self
fn from(err: SdkError<AddPermissionError, R>) -> Self
Source§impl<R> From<SdkError<CreateAliasError, R>> for Error
impl<R> From<SdkError<CreateAliasError, R>> for Error
Source§fn from(err: SdkError<CreateAliasError, R>) -> Self
fn from(err: SdkError<CreateAliasError, R>) -> Self
Source§impl<R> From<SdkError<CreateCodeSigningConfigError, R>> for Error
impl<R> From<SdkError<CreateCodeSigningConfigError, R>> for Error
Source§fn from(err: SdkError<CreateCodeSigningConfigError, R>) -> Self
fn from(err: SdkError<CreateCodeSigningConfigError, R>) -> Self
Source§impl<R> From<SdkError<CreateEventSourceMappingError, R>> for Error
impl<R> From<SdkError<CreateEventSourceMappingError, R>> for Error
Source§fn from(err: SdkError<CreateEventSourceMappingError, R>) -> Self
fn from(err: SdkError<CreateEventSourceMappingError, R>) -> Self
Source§impl<R> From<SdkError<CreateFunctionError, R>> for Error
impl<R> From<SdkError<CreateFunctionError, R>> for Error
Source§fn from(err: SdkError<CreateFunctionError, R>) -> Self
fn from(err: SdkError<CreateFunctionError, R>) -> Self
Source§impl<R> From<SdkError<CreateFunctionUrlConfigError, R>> for Error
impl<R> From<SdkError<CreateFunctionUrlConfigError, R>> for Error
Source§fn from(err: SdkError<CreateFunctionUrlConfigError, R>) -> Self
fn from(err: SdkError<CreateFunctionUrlConfigError, R>) -> Self
Source§impl<R> From<SdkError<DeleteAliasError, R>> for Error
impl<R> From<SdkError<DeleteAliasError, R>> for Error
Source§fn from(err: SdkError<DeleteAliasError, R>) -> Self
fn from(err: SdkError<DeleteAliasError, R>) -> Self
Source§impl<R> From<SdkError<DeleteCodeSigningConfigError, R>> for Error
impl<R> From<SdkError<DeleteCodeSigningConfigError, R>> for Error
Source§fn from(err: SdkError<DeleteCodeSigningConfigError, R>) -> Self
fn from(err: SdkError<DeleteCodeSigningConfigError, R>) -> Self
Source§impl<R> From<SdkError<DeleteEventSourceMappingError, R>> for Error
impl<R> From<SdkError<DeleteEventSourceMappingError, R>> for Error
Source§fn from(err: SdkError<DeleteEventSourceMappingError, R>) -> Self
fn from(err: SdkError<DeleteEventSourceMappingError, R>) -> Self
Source§impl<R> From<SdkError<DeleteFunctionCodeSigningConfigError, R>> for Error
impl<R> From<SdkError<DeleteFunctionCodeSigningConfigError, R>> for Error
Source§fn from(err: SdkError<DeleteFunctionCodeSigningConfigError, R>) -> Self
fn from(err: SdkError<DeleteFunctionCodeSigningConfigError, R>) -> Self
Source§impl<R> From<SdkError<DeleteFunctionConcurrencyError, R>> for Error
impl<R> From<SdkError<DeleteFunctionConcurrencyError, R>> for Error
Source§fn from(err: SdkError<DeleteFunctionConcurrencyError, R>) -> Self
fn from(err: SdkError<DeleteFunctionConcurrencyError, R>) -> Self
Source§impl<R> From<SdkError<DeleteFunctionError, R>> for Error
impl<R> From<SdkError<DeleteFunctionError, R>> for Error
Source§fn from(err: SdkError<DeleteFunctionError, R>) -> Self
fn from(err: SdkError<DeleteFunctionError, R>) -> Self
Source§impl<R> From<SdkError<DeleteFunctionEventInvokeConfigError, R>> for Error
impl<R> From<SdkError<DeleteFunctionEventInvokeConfigError, R>> for Error
Source§fn from(err: SdkError<DeleteFunctionEventInvokeConfigError, R>) -> Self
fn from(err: SdkError<DeleteFunctionEventInvokeConfigError, R>) -> Self
Source§impl<R> From<SdkError<DeleteFunctionUrlConfigError, R>> for Error
impl<R> From<SdkError<DeleteFunctionUrlConfigError, R>> for Error
Source§fn from(err: SdkError<DeleteFunctionUrlConfigError, R>) -> Self
fn from(err: SdkError<DeleteFunctionUrlConfigError, R>) -> Self
Source§impl<R> From<SdkError<DeleteLayerVersionError, R>> for Error
impl<R> From<SdkError<DeleteLayerVersionError, R>> for Error
Source§fn from(err: SdkError<DeleteLayerVersionError, R>) -> Self
fn from(err: SdkError<DeleteLayerVersionError, R>) -> Self
Source§impl<R> From<SdkError<DeleteProvisionedConcurrencyConfigError, R>> for Error
impl<R> From<SdkError<DeleteProvisionedConcurrencyConfigError, R>> for Error
Source§fn from(err: SdkError<DeleteProvisionedConcurrencyConfigError, R>) -> Self
fn from(err: SdkError<DeleteProvisionedConcurrencyConfigError, R>) -> Self
Source§impl<R> From<SdkError<GetAccountSettingsError, R>> for Error
impl<R> From<SdkError<GetAccountSettingsError, R>> for Error
Source§fn from(err: SdkError<GetAccountSettingsError, R>) -> Self
fn from(err: SdkError<GetAccountSettingsError, R>) -> Self
Source§impl<R> From<SdkError<GetAliasError, R>> for Error
impl<R> From<SdkError<GetAliasError, R>> for Error
Source§fn from(err: SdkError<GetAliasError, R>) -> Self
fn from(err: SdkError<GetAliasError, R>) -> Self
Source§impl<R> From<SdkError<GetCodeSigningConfigError, R>> for Error
impl<R> From<SdkError<GetCodeSigningConfigError, R>> for Error
Source§fn from(err: SdkError<GetCodeSigningConfigError, R>) -> Self
fn from(err: SdkError<GetCodeSigningConfigError, R>) -> Self
Source§impl<R> From<SdkError<GetEventSourceMappingError, R>> for Error
impl<R> From<SdkError<GetEventSourceMappingError, R>> for Error
Source§fn from(err: SdkError<GetEventSourceMappingError, R>) -> Self
fn from(err: SdkError<GetEventSourceMappingError, R>) -> Self
Source§impl<R> From<SdkError<GetFunctionCodeSigningConfigError, R>> for Error
impl<R> From<SdkError<GetFunctionCodeSigningConfigError, R>> for Error
Source§fn from(err: SdkError<GetFunctionCodeSigningConfigError, R>) -> Self
fn from(err: SdkError<GetFunctionCodeSigningConfigError, R>) -> Self
Source§impl<R> From<SdkError<GetFunctionConcurrencyError, R>> for Error
impl<R> From<SdkError<GetFunctionConcurrencyError, R>> for Error
Source§fn from(err: SdkError<GetFunctionConcurrencyError, R>) -> Self
fn from(err: SdkError<GetFunctionConcurrencyError, R>) -> Self
Source§impl<R> From<SdkError<GetFunctionConfigurationError, R>> for Error
impl<R> From<SdkError<GetFunctionConfigurationError, R>> for Error
Source§fn from(err: SdkError<GetFunctionConfigurationError, R>) -> Self
fn from(err: SdkError<GetFunctionConfigurationError, R>) -> Self
Source§impl<R> From<SdkError<GetFunctionError, R>> for Error
impl<R> From<SdkError<GetFunctionError, R>> for Error
Source§fn from(err: SdkError<GetFunctionError, R>) -> Self
fn from(err: SdkError<GetFunctionError, R>) -> Self
Source§impl<R> From<SdkError<GetFunctionEventInvokeConfigError, R>> for Error
impl<R> From<SdkError<GetFunctionEventInvokeConfigError, R>> for Error
Source§fn from(err: SdkError<GetFunctionEventInvokeConfigError, R>) -> Self
fn from(err: SdkError<GetFunctionEventInvokeConfigError, R>) -> Self
Source§impl<R> From<SdkError<GetFunctionRecursionConfigError, R>> for Error
impl<R> From<SdkError<GetFunctionRecursionConfigError, R>> for Error
Source§fn from(err: SdkError<GetFunctionRecursionConfigError, R>) -> Self
fn from(err: SdkError<GetFunctionRecursionConfigError, R>) -> Self
Source§impl<R> From<SdkError<GetFunctionUrlConfigError, R>> for Error
impl<R> From<SdkError<GetFunctionUrlConfigError, R>> for Error
Source§fn from(err: SdkError<GetFunctionUrlConfigError, R>) -> Self
fn from(err: SdkError<GetFunctionUrlConfigError, R>) -> Self
Source§impl<R> From<SdkError<GetLayerVersionByArnError, R>> for Error
impl<R> From<SdkError<GetLayerVersionByArnError, R>> for Error
Source§fn from(err: SdkError<GetLayerVersionByArnError, R>) -> Self
fn from(err: SdkError<GetLayerVersionByArnError, R>) -> Self
Source§impl<R> From<SdkError<GetLayerVersionError, R>> for Error
impl<R> From<SdkError<GetLayerVersionError, R>> for Error
Source§fn from(err: SdkError<GetLayerVersionError, R>) -> Self
fn from(err: SdkError<GetLayerVersionError, R>) -> Self
Source§impl<R> From<SdkError<GetLayerVersionPolicyError, R>> for Error
impl<R> From<SdkError<GetLayerVersionPolicyError, R>> for Error
Source§fn from(err: SdkError<GetLayerVersionPolicyError, R>) -> Self
fn from(err: SdkError<GetLayerVersionPolicyError, R>) -> Self
Source§impl<R> From<SdkError<GetPolicyError, R>> for Error
impl<R> From<SdkError<GetPolicyError, R>> for Error
Source§fn from(err: SdkError<GetPolicyError, R>) -> Self
fn from(err: SdkError<GetPolicyError, R>) -> Self
Source§impl<R> From<SdkError<GetProvisionedConcurrencyConfigError, R>> for Error
impl<R> From<SdkError<GetProvisionedConcurrencyConfigError, R>> for Error
Source§fn from(err: SdkError<GetProvisionedConcurrencyConfigError, R>) -> Self
fn from(err: SdkError<GetProvisionedConcurrencyConfigError, R>) -> Self
Source§impl<R> From<SdkError<GetRuntimeManagementConfigError, R>> for Error
impl<R> From<SdkError<GetRuntimeManagementConfigError, R>> for Error
Source§fn from(err: SdkError<GetRuntimeManagementConfigError, R>) -> Self
fn from(err: SdkError<GetRuntimeManagementConfigError, R>) -> Self
Source§impl<R> From<SdkError<InvokeAsyncError, R>> for Error
impl<R> From<SdkError<InvokeAsyncError, R>> for Error
Source§fn from(err: SdkError<InvokeAsyncError, R>) -> Self
fn from(err: SdkError<InvokeAsyncError, R>) -> Self
Source§impl<R> From<SdkError<InvokeError, R>> for Error
impl<R> From<SdkError<InvokeError, R>> for Error
Source§fn from(err: SdkError<InvokeError, R>) -> Self
fn from(err: SdkError<InvokeError, R>) -> Self
Source§impl<R> From<SdkError<InvokeWithResponseStreamError, R>> for Error
impl<R> From<SdkError<InvokeWithResponseStreamError, R>> for Error
Source§fn from(err: SdkError<InvokeWithResponseStreamError, R>) -> Self
fn from(err: SdkError<InvokeWithResponseStreamError, R>) -> Self
Source§impl<R> From<SdkError<InvokeWithResponseStreamResponseEventError, R>> for Error
impl<R> From<SdkError<InvokeWithResponseStreamResponseEventError, R>> for Error
Source§fn from(err: SdkError<InvokeWithResponseStreamResponseEventError, R>) -> Self
fn from(err: SdkError<InvokeWithResponseStreamResponseEventError, R>) -> Self
Source§impl<R> From<SdkError<ListAliasesError, R>> for Error
impl<R> From<SdkError<ListAliasesError, R>> for Error
Source§fn from(err: SdkError<ListAliasesError, R>) -> Self
fn from(err: SdkError<ListAliasesError, R>) -> Self
Source§impl<R> From<SdkError<ListCodeSigningConfigsError, R>> for Error
impl<R> From<SdkError<ListCodeSigningConfigsError, R>> for Error
Source§fn from(err: SdkError<ListCodeSigningConfigsError, R>) -> Self
fn from(err: SdkError<ListCodeSigningConfigsError, R>) -> Self
Source§impl<R> From<SdkError<ListEventSourceMappingsError, R>> for Error
impl<R> From<SdkError<ListEventSourceMappingsError, R>> for Error
Source§fn from(err: SdkError<ListEventSourceMappingsError, R>) -> Self
fn from(err: SdkError<ListEventSourceMappingsError, R>) -> Self
Source§impl<R> From<SdkError<ListFunctionEventInvokeConfigsError, R>> for Error
impl<R> From<SdkError<ListFunctionEventInvokeConfigsError, R>> for Error
Source§fn from(err: SdkError<ListFunctionEventInvokeConfigsError, R>) -> Self
fn from(err: SdkError<ListFunctionEventInvokeConfigsError, R>) -> Self
Source§impl<R> From<SdkError<ListFunctionUrlConfigsError, R>> for Error
impl<R> From<SdkError<ListFunctionUrlConfigsError, R>> for Error
Source§fn from(err: SdkError<ListFunctionUrlConfigsError, R>) -> Self
fn from(err: SdkError<ListFunctionUrlConfigsError, R>) -> Self
Source§impl<R> From<SdkError<ListFunctionsByCodeSigningConfigError, R>> for Error
impl<R> From<SdkError<ListFunctionsByCodeSigningConfigError, R>> for Error
Source§fn from(err: SdkError<ListFunctionsByCodeSigningConfigError, R>) -> Self
fn from(err: SdkError<ListFunctionsByCodeSigningConfigError, R>) -> Self
Source§impl<R> From<SdkError<ListFunctionsError, R>> for Error
impl<R> From<SdkError<ListFunctionsError, R>> for Error
Source§fn from(err: SdkError<ListFunctionsError, R>) -> Self
fn from(err: SdkError<ListFunctionsError, R>) -> Self
Source§impl<R> From<SdkError<ListLayerVersionsError, R>> for Error
impl<R> From<SdkError<ListLayerVersionsError, R>> for Error
Source§fn from(err: SdkError<ListLayerVersionsError, R>) -> Self
fn from(err: SdkError<ListLayerVersionsError, R>) -> Self
Source§impl<R> From<SdkError<ListLayersError, R>> for Error
impl<R> From<SdkError<ListLayersError, R>> for Error
Source§fn from(err: SdkError<ListLayersError, R>) -> Self
fn from(err: SdkError<ListLayersError, R>) -> Self
Source§impl<R> From<SdkError<ListProvisionedConcurrencyConfigsError, R>> for Error
impl<R> From<SdkError<ListProvisionedConcurrencyConfigsError, R>> for Error
Source§fn from(err: SdkError<ListProvisionedConcurrencyConfigsError, R>) -> Self
fn from(err: SdkError<ListProvisionedConcurrencyConfigsError, R>) -> Self
Source§impl<R> From<SdkError<ListTagsError, R>> for Error
impl<R> From<SdkError<ListTagsError, R>> for Error
Source§fn from(err: SdkError<ListTagsError, R>) -> Self
fn from(err: SdkError<ListTagsError, R>) -> Self
Source§impl<R> From<SdkError<ListVersionsByFunctionError, R>> for Error
impl<R> From<SdkError<ListVersionsByFunctionError, R>> for Error
Source§fn from(err: SdkError<ListVersionsByFunctionError, R>) -> Self
fn from(err: SdkError<ListVersionsByFunctionError, R>) -> Self
Source§impl<R> From<SdkError<PublishLayerVersionError, R>> for Error
impl<R> From<SdkError<PublishLayerVersionError, R>> for Error
Source§fn from(err: SdkError<PublishLayerVersionError, R>) -> Self
fn from(err: SdkError<PublishLayerVersionError, R>) -> Self
Source§impl<R> From<SdkError<PublishVersionError, R>> for Error
impl<R> From<SdkError<PublishVersionError, R>> for Error
Source§fn from(err: SdkError<PublishVersionError, R>) -> Self
fn from(err: SdkError<PublishVersionError, R>) -> Self
Source§impl<R> From<SdkError<PutFunctionCodeSigningConfigError, R>> for Error
impl<R> From<SdkError<PutFunctionCodeSigningConfigError, R>> for Error
Source§fn from(err: SdkError<PutFunctionCodeSigningConfigError, R>) -> Self
fn from(err: SdkError<PutFunctionCodeSigningConfigError, R>) -> Self
Source§impl<R> From<SdkError<PutFunctionConcurrencyError, R>> for Error
impl<R> From<SdkError<PutFunctionConcurrencyError, R>> for Error
Source§fn from(err: SdkError<PutFunctionConcurrencyError, R>) -> Self
fn from(err: SdkError<PutFunctionConcurrencyError, R>) -> Self
Source§impl<R> From<SdkError<PutFunctionEventInvokeConfigError, R>> for Error
impl<R> From<SdkError<PutFunctionEventInvokeConfigError, R>> for Error
Source§fn from(err: SdkError<PutFunctionEventInvokeConfigError, R>) -> Self
fn from(err: SdkError<PutFunctionEventInvokeConfigError, R>) -> Self
Source§impl<R> From<SdkError<PutFunctionRecursionConfigError, R>> for Error
impl<R> From<SdkError<PutFunctionRecursionConfigError, R>> for Error
Source§fn from(err: SdkError<PutFunctionRecursionConfigError, R>) -> Self
fn from(err: SdkError<PutFunctionRecursionConfigError, R>) -> Self
Source§impl<R> From<SdkError<PutProvisionedConcurrencyConfigError, R>> for Error
impl<R> From<SdkError<PutProvisionedConcurrencyConfigError, R>> for Error
Source§fn from(err: SdkError<PutProvisionedConcurrencyConfigError, R>) -> Self
fn from(err: SdkError<PutProvisionedConcurrencyConfigError, R>) -> Self
Source§impl<R> From<SdkError<PutRuntimeManagementConfigError, R>> for Error
impl<R> From<SdkError<PutRuntimeManagementConfigError, R>> for Error
Source§fn from(err: SdkError<PutRuntimeManagementConfigError, R>) -> Self
fn from(err: SdkError<PutRuntimeManagementConfigError, R>) -> Self
Source§impl<R> From<SdkError<RemoveLayerVersionPermissionError, R>> for Error
impl<R> From<SdkError<RemoveLayerVersionPermissionError, R>> for Error
Source§fn from(err: SdkError<RemoveLayerVersionPermissionError, R>) -> Self
fn from(err: SdkError<RemoveLayerVersionPermissionError, R>) -> Self
Source§impl<R> From<SdkError<RemovePermissionError, R>> for Error
impl<R> From<SdkError<RemovePermissionError, R>> for Error
Source§fn from(err: SdkError<RemovePermissionError, R>) -> Self
fn from(err: SdkError<RemovePermissionError, 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<UpdateAliasError, R>> for Error
impl<R> From<SdkError<UpdateAliasError, R>> for Error
Source§fn from(err: SdkError<UpdateAliasError, R>) -> Self
fn from(err: SdkError<UpdateAliasError, R>) -> Self
Source§impl<R> From<SdkError<UpdateCodeSigningConfigError, R>> for Error
impl<R> From<SdkError<UpdateCodeSigningConfigError, R>> for Error
Source§fn from(err: SdkError<UpdateCodeSigningConfigError, R>) -> Self
fn from(err: SdkError<UpdateCodeSigningConfigError, R>) -> Self
Source§impl<R> From<SdkError<UpdateEventSourceMappingError, R>> for Error
impl<R> From<SdkError<UpdateEventSourceMappingError, R>> for Error
Source§fn from(err: SdkError<UpdateEventSourceMappingError, R>) -> Self
fn from(err: SdkError<UpdateEventSourceMappingError, R>) -> Self
Source§impl<R> From<SdkError<UpdateFunctionCodeError, R>> for Error
impl<R> From<SdkError<UpdateFunctionCodeError, R>> for Error
Source§fn from(err: SdkError<UpdateFunctionCodeError, R>) -> Self
fn from(err: SdkError<UpdateFunctionCodeError, R>) -> Self
Source§impl<R> From<SdkError<UpdateFunctionConfigurationError, R>> for Error
impl<R> From<SdkError<UpdateFunctionConfigurationError, R>> for Error
Source§fn from(err: SdkError<UpdateFunctionConfigurationError, R>) -> Self
fn from(err: SdkError<UpdateFunctionConfigurationError, R>) -> Self
Source§impl<R> From<SdkError<UpdateFunctionEventInvokeConfigError, R>> for Error
impl<R> From<SdkError<UpdateFunctionEventInvokeConfigError, R>> for Error
Source§fn from(err: SdkError<UpdateFunctionEventInvokeConfigError, R>) -> Self
fn from(err: SdkError<UpdateFunctionEventInvokeConfigError, R>) -> Self
Source§impl<R> From<SdkError<UpdateFunctionUrlConfigError, R>> for Error
impl<R> From<SdkError<UpdateFunctionUrlConfigError, R>> for Error
Source§fn from(err: SdkError<UpdateFunctionUrlConfigError, R>) -> Self
fn from(err: SdkError<UpdateFunctionUrlConfigError, 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<UpdateAliasError> for Error
impl From<UpdateAliasError> for Error
Source§fn from(err: UpdateAliasError) -> Self
fn from(err: UpdateAliasError) -> Self
Source§impl From<UpdateCodeSigningConfigError> for Error
impl From<UpdateCodeSigningConfigError> for Error
Source§fn from(err: UpdateCodeSigningConfigError) -> Self
fn from(err: UpdateCodeSigningConfigError) -> Self
Source§impl From<UpdateEventSourceMappingError> for Error
impl From<UpdateEventSourceMappingError> for Error
Source§fn from(err: UpdateEventSourceMappingError) -> Self
fn from(err: UpdateEventSourceMappingError) -> Self
Source§impl From<UpdateFunctionCodeError> for Error
impl From<UpdateFunctionCodeError> for Error
Source§fn from(err: UpdateFunctionCodeError) -> Self
fn from(err: UpdateFunctionCodeError) -> Self
Source§impl From<UpdateFunctionConfigurationError> for Error
impl From<UpdateFunctionConfigurationError> for Error
Source§fn from(err: UpdateFunctionConfigurationError) -> Self
fn from(err: UpdateFunctionConfigurationError) -> Self
Source§impl From<UpdateFunctionEventInvokeConfigError> for Error
impl From<UpdateFunctionEventInvokeConfigError> for Error
Source§fn from(err: UpdateFunctionEventInvokeConfigError) -> Self
fn from(err: UpdateFunctionEventInvokeConfigError) -> Self
Source§impl From<UpdateFunctionUrlConfigError> for Error
impl From<UpdateFunctionUrlConfigError> for Error
Source§fn from(err: UpdateFunctionUrlConfigError) -> Self
fn from(err: UpdateFunctionUrlConfigError) -> 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>
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);