Enum Error

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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 or GetAlias 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)

👎Deprecated: Matching Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():    err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ } See ProvideErrorMetadata for what information is available for the error.

An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).

Trait Implementations§

Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AddLayerVersionPermissionError> for Error

Source§

fn from(err: AddLayerVersionPermissionError) -> Self

Converts to this type from the input type.
Source§

impl From<AddPermissionError> for Error

Source§

fn from(err: AddPermissionError) -> Self

Converts to this type from the input type.
Source§

impl From<BuildError> for Error

Source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateAliasError> for Error

Source§

fn from(err: CreateAliasError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateCodeSigningConfigError> for Error

Source§

fn from(err: CreateCodeSigningConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateEventSourceMappingError> for Error

Source§

fn from(err: CreateEventSourceMappingError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateFunctionError> for Error

Source§

fn from(err: CreateFunctionError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateFunctionUrlConfigError> for Error

Source§

fn from(err: CreateFunctionUrlConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteAliasError> for Error

Source§

fn from(err: DeleteAliasError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteCodeSigningConfigError> for Error

Source§

fn from(err: DeleteCodeSigningConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteEventSourceMappingError> for Error

Source§

fn from(err: DeleteEventSourceMappingError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteFunctionCodeSigningConfigError> for Error

Source§

fn from(err: DeleteFunctionCodeSigningConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteFunctionConcurrencyError> for Error

Source§

fn from(err: DeleteFunctionConcurrencyError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteFunctionError> for Error

Source§

fn from(err: DeleteFunctionError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteFunctionEventInvokeConfigError> for Error

Source§

fn from(err: DeleteFunctionEventInvokeConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteFunctionUrlConfigError> for Error

Source§

fn from(err: DeleteFunctionUrlConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteLayerVersionError> for Error

Source§

fn from(err: DeleteLayerVersionError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteProvisionedConcurrencyConfigError> for Error

Source§

fn from(err: DeleteProvisionedConcurrencyConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<GetAccountSettingsError> for Error

Source§

fn from(err: GetAccountSettingsError) -> Self

Converts to this type from the input type.
Source§

impl From<GetAliasError> for Error

Source§

fn from(err: GetAliasError) -> Self

Converts to this type from the input type.
Source§

impl From<GetCodeSigningConfigError> for Error

Source§

fn from(err: GetCodeSigningConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<GetEventSourceMappingError> for Error

Source§

fn from(err: GetEventSourceMappingError) -> Self

Converts to this type from the input type.
Source§

impl From<GetFunctionCodeSigningConfigError> for Error

Source§

fn from(err: GetFunctionCodeSigningConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<GetFunctionConcurrencyError> for Error

Source§

fn from(err: GetFunctionConcurrencyError) -> Self

Converts to this type from the input type.
Source§

impl From<GetFunctionConfigurationError> for Error

Source§

fn from(err: GetFunctionConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetFunctionError> for Error

Source§

fn from(err: GetFunctionError) -> Self

Converts to this type from the input type.
Source§

impl From<GetFunctionEventInvokeConfigError> for Error

Source§

fn from(err: GetFunctionEventInvokeConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<GetFunctionRecursionConfigError> for Error

Source§

fn from(err: GetFunctionRecursionConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<GetFunctionUrlConfigError> for Error

Source§

fn from(err: GetFunctionUrlConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<GetLayerVersionByArnError> for Error

Source§

fn from(err: GetLayerVersionByArnError) -> Self

Converts to this type from the input type.
Source§

impl From<GetLayerVersionError> for Error

Source§

fn from(err: GetLayerVersionError) -> Self

Converts to this type from the input type.
Source§

impl From<GetLayerVersionPolicyError> for Error

Source§

fn from(err: GetLayerVersionPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<GetPolicyError> for Error

Source§

fn from(err: GetPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<GetProvisionedConcurrencyConfigError> for Error

Source§

fn from(err: GetProvisionedConcurrencyConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<GetRuntimeManagementConfigError> for Error

Source§

fn from(err: GetRuntimeManagementConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<InvokeAsyncError> for Error

Source§

fn from(err: InvokeAsyncError) -> Self

Converts to this type from the input type.
Source§

impl From<InvokeError> for Error

Source§

fn from(err: InvokeError) -> Self

Converts to this type from the input type.
Source§

impl From<InvokeWithResponseStreamError> for Error

Source§

fn from(err: InvokeWithResponseStreamError) -> Self

Converts to this type from the input type.
Source§

impl From<InvokeWithResponseStreamResponseEventError> for Error

Source§

fn from(err: InvokeWithResponseStreamResponseEventError) -> Self

Converts to this type from the input type.
Source§

impl From<ListAliasesError> for Error

Source§

fn from(err: ListAliasesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListCodeSigningConfigsError> for Error

Source§

fn from(err: ListCodeSigningConfigsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListEventSourceMappingsError> for Error

Source§

fn from(err: ListEventSourceMappingsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListFunctionEventInvokeConfigsError> for Error

Source§

fn from(err: ListFunctionEventInvokeConfigsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListFunctionUrlConfigsError> for Error

Source§

fn from(err: ListFunctionUrlConfigsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListFunctionsByCodeSigningConfigError> for Error

Source§

fn from(err: ListFunctionsByCodeSigningConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<ListFunctionsError> for Error

Source§

fn from(err: ListFunctionsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListLayerVersionsError> for Error

Source§

fn from(err: ListLayerVersionsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListLayersError> for Error

Source§

fn from(err: ListLayersError) -> Self

Converts to this type from the input type.
Source§

impl From<ListProvisionedConcurrencyConfigsError> for Error

Source§

fn from(err: ListProvisionedConcurrencyConfigsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListTagsError> for Error

Source§

fn from(err: ListTagsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListVersionsByFunctionError> for Error

Source§

fn from(err: ListVersionsByFunctionError) -> Self

Converts to this type from the input type.
Source§

impl From<PublishLayerVersionError> for Error

Source§

fn from(err: PublishLayerVersionError) -> Self

Converts to this type from the input type.
Source§

impl From<PublishVersionError> for Error

Source§

fn from(err: PublishVersionError) -> Self

Converts to this type from the input type.
Source§

impl From<PutFunctionCodeSigningConfigError> for Error

Source§

fn from(err: PutFunctionCodeSigningConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<PutFunctionConcurrencyError> for Error

Source§

fn from(err: PutFunctionConcurrencyError) -> Self

Converts to this type from the input type.
Source§

impl From<PutFunctionEventInvokeConfigError> for Error

Source§

fn from(err: PutFunctionEventInvokeConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<PutFunctionRecursionConfigError> for Error

Source§

fn from(err: PutFunctionRecursionConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<PutProvisionedConcurrencyConfigError> for Error

Source§

fn from(err: PutProvisionedConcurrencyConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<PutRuntimeManagementConfigError> for Error

Source§

fn from(err: PutRuntimeManagementConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveLayerVersionPermissionError> for Error

Source§

fn from(err: RemoveLayerVersionPermissionError) -> Self

Converts to this type from the input type.
Source§

impl From<RemovePermissionError> for Error

Source§

fn from(err: RemovePermissionError) -> Self

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl From<TagResourceError> for Error

Source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<UntagResourceError> for Error

Source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateAliasError> for Error

Source§

fn from(err: UpdateAliasError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateCodeSigningConfigError> for Error

Source§

fn from(err: UpdateCodeSigningConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateEventSourceMappingError> for Error

Source§

fn from(err: UpdateEventSourceMappingError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateFunctionCodeError> for Error

Source§

fn from(err: UpdateFunctionCodeError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateFunctionConfigurationError> for Error

Source§

fn from(err: UpdateFunctionConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateFunctionEventInvokeConfigError> for Error

Source§

fn from(err: UpdateFunctionEventInvokeConfigError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateFunctionUrlConfigError> for Error

Source§

fn from(err: UpdateFunctionUrlConfigError) -> Self

Converts to this type from the input type.
Source§

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

Source§

fn from(err: WaiterError<O, E>) -> Self

Converts to this type from the input type.
Source§

impl ProvideErrorMetadata for Error

Source§

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
Source§

fn code(&self) -> Option<&str>

Returns the error code if it’s available.
Source§

fn message(&self) -> Option<&str>

Returns the error message, if there is one.
Source§

impl RequestId for Error

Source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Paint for T
where T: ?Sized,

Source§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and green(), which have the same functionality but are pithier.

§Example

Set foreground color to white using fg():

use yansi::{Paint, Color};

painted.fg(Color::White);

Set foreground color to white using white().

use yansi::Paint;

painted.white();
Source§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
Source§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
Source§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
Source§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
Source§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
Source§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
Source§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
Source§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
Source§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
Source§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
Source§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
Source§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlack].

§Example
println!("{}", value.bright_black());
Source§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
Source§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightGreen].

§Example
println!("{}", value.bright_green());
Source§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
Source§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
Source§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.bright_magenta());
Source§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
Source§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightWhite].

§Example
println!("{}", value.bright_white());
Source§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and on_green(), which have the same functionality but are pithier.

§Example

Set background color to red using fg():

use yansi::{Paint, Color};

painted.bg(Color::Red);

Set background color to red using on_red().

use yansi::Paint;

painted.on_red();
Source§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
Source§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
Source§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
Source§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
Source§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
Source§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
Source§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
Source§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
Source§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
Source§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
Source§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
Source§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlack].

§Example
println!("{}", value.on_bright_black());
Source§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
Source§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightGreen].

§Example
println!("{}", value.on_bright_green());
Source§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
Source§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlue].

§Example
println!("{}", value.on_bright_blue());
Source§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
Source§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
Source§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
Source§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling Attribute value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality but are pithier.

§Example

Make text bold using attr():

use yansi::{Paint, Attribute};

painted.attr(Attribute::Bold);

Make text bold using using bold().

use yansi::Paint;

painted.bold();
Source§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
Source§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
Source§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
Source§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
Source§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
Source§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
Source§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
Source§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi Quirk value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are pithier.

§Example

Enable wrapping using .quirk():

use yansi::{Paint, Quirk};

painted.quirk(Quirk::Wrap);

Enable wrapping using wrap().

use yansi::Paint;

painted.wrap();
Source§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
Source§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
Source§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
Source§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
Source§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
Source§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
Source§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
Source§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the Condition value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example

Enable styling painted only when both stdout and stderr are TTYs:

use yansi::{Paint, Condition};

painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
Source§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new Painted with a default Style. Read more
Source§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> MaybeSendSync for T