aws_sdk_s3

Enum Error

Source
#[non_exhaustive]
pub enum Error {
Show 14 variants BucketAlreadyExists(BucketAlreadyExists), BucketAlreadyOwnedByYou(BucketAlreadyOwnedByYou), EncryptionTypeMismatch(EncryptionTypeMismatch), InvalidObjectState(InvalidObjectState), InvalidRequest(InvalidRequest), InvalidWriteOffset(InvalidWriteOffset), NoSuchBucket(NoSuchBucket), NoSuchKey(NoSuchKey), NoSuchUpload(NoSuchUpload), NotFound(NotFound), ObjectAlreadyInActiveTierError(ObjectAlreadyInActiveTierError), ObjectNotInActiveTierError(ObjectNotInActiveTierError), TooManyParts(TooManyParts), 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.
§

BucketAlreadyExists(BucketAlreadyExists)

The requested bucket name is not available. The bucket namespace is shared by all users of the system. Select a different name and try again.

§

BucketAlreadyOwnedByYou(BucketAlreadyOwnedByYou)

The bucket you tried to create already exists, and you own it. Amazon S3 returns this error in all Amazon Web Services Regions except in the North Virginia Region. For legacy compatibility, if you re-create an existing bucket that you already own in the North Virginia Region, Amazon S3 returns 200 OK and resets the bucket access control lists (ACLs).

§

EncryptionTypeMismatch(EncryptionTypeMismatch)

The existing object was created with a different encryption type. Subsequent write requests must include the appropriate encryption parameters in the request or while creating the session.

§

InvalidObjectState(InvalidObjectState)

Object is archived and inaccessible until restored.

If the object you are retrieving is stored in the S3 Glacier Flexible Retrieval storage class, the S3 Glacier Deep Archive storage class, the S3 Intelligent-Tiering Archive Access tier, or the S3 Intelligent-Tiering Deep Archive Access tier, before you can retrieve the object you must first restore a copy using RestoreObject. Otherwise, this operation returns an InvalidObjectState error. For information about restoring archived objects, see Restoring Archived Objects in the Amazon S3 User Guide.

§

InvalidRequest(InvalidRequest)

You may receive this error in multiple cases. Depending on the reason for the error, you may receive one of the messages below:

  • Cannot specify both a write offset value and user-defined object metadata for existing objects.

  • Checksum Type mismatch occurred, expected checksum Type: sha1, actual checksum Type: crc32c.

  • Request body cannot be empty when 'write offset' is specified.

§

InvalidWriteOffset(InvalidWriteOffset)

The write offset value that you specified does not match the current object size.

§

NoSuchBucket(NoSuchBucket)

The specified bucket does not exist.

§

NoSuchKey(NoSuchKey)

The specified key does not exist.

§

NoSuchUpload(NoSuchUpload)

The specified multipart upload does not exist.

§

NotFound(NotFound)

The specified content does not exist.

§

ObjectAlreadyInActiveTierError(ObjectAlreadyInActiveTierError)

This action is not allowed against this storage tier.

§

ObjectNotInActiveTierError(ObjectNotInActiveTierError)

The source object of the COPY action is not in the active tier and is only stored in Amazon S3 Glacier.

§

TooManyParts(TooManyParts)

You have attempted to add more parts than the maximum of 10000 that are allowed for this object. You can use the CopyObject operation to copy this object to another and then add more data to the newly copied object.

§

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<AbortMultipartUploadError> for Error

Source§

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

Source§

fn from(err: CompleteMultipartUploadError) -> Self

Converts to this type from the input type.
Source§

impl From<CopyObjectError> for Error

Source§

fn from(err: CopyObjectError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateBucketError> for Error

Source§

fn from(err: CreateBucketError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateMultipartUploadError> for Error

Source§

fn from(err: CreateMultipartUploadError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateSessionError> for Error

Source§

fn from(err: CreateSessionError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketAnalyticsConfigurationError> for Error

Source§

fn from(err: DeleteBucketAnalyticsConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketCorsError> for Error

Source§

fn from(err: DeleteBucketCorsError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketEncryptionError> for Error

Source§

fn from(err: DeleteBucketEncryptionError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketError> for Error

Source§

fn from(err: DeleteBucketError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketIntelligentTieringConfigurationError> for Error

Source§

fn from(err: DeleteBucketIntelligentTieringConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketInventoryConfigurationError> for Error

Source§

fn from(err: DeleteBucketInventoryConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketLifecycleError> for Error

Source§

fn from(err: DeleteBucketLifecycleError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketMetricsConfigurationError> for Error

Source§

fn from(err: DeleteBucketMetricsConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketOwnershipControlsError> for Error

Source§

fn from(err: DeleteBucketOwnershipControlsError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketPolicyError> for Error

Source§

fn from(err: DeleteBucketPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketReplicationError> for Error

Source§

fn from(err: DeleteBucketReplicationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketTaggingError> for Error

Source§

fn from(err: DeleteBucketTaggingError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBucketWebsiteError> for Error

Source§

fn from(err: DeleteBucketWebsiteError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteObjectError> for Error

Source§

fn from(err: DeleteObjectError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteObjectTaggingError> for Error

Source§

fn from(err: DeleteObjectTaggingError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteObjectsError> for Error

Source§

fn from(err: DeleteObjectsError) -> Self

Converts to this type from the input type.
Source§

impl From<DeletePublicAccessBlockError> for Error

Source§

fn from(err: DeletePublicAccessBlockError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketAccelerateConfigurationError> for Error

Source§

fn from(err: GetBucketAccelerateConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketAclError> for Error

Source§

fn from(err: GetBucketAclError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketAnalyticsConfigurationError> for Error

Source§

fn from(err: GetBucketAnalyticsConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketCorsError> for Error

Source§

fn from(err: GetBucketCorsError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketEncryptionError> for Error

Source§

fn from(err: GetBucketEncryptionError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketIntelligentTieringConfigurationError> for Error

Source§

fn from(err: GetBucketIntelligentTieringConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketInventoryConfigurationError> for Error

Source§

fn from(err: GetBucketInventoryConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketLifecycleConfigurationError> for Error

Source§

fn from(err: GetBucketLifecycleConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketLocationError> for Error

Source§

fn from(err: GetBucketLocationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketLoggingError> for Error

Source§

fn from(err: GetBucketLoggingError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketMetricsConfigurationError> for Error

Source§

fn from(err: GetBucketMetricsConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketNotificationConfigurationError> for Error

Source§

fn from(err: GetBucketNotificationConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketOwnershipControlsError> for Error

Source§

fn from(err: GetBucketOwnershipControlsError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketPolicyError> for Error

Source§

fn from(err: GetBucketPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketPolicyStatusError> for Error

Source§

fn from(err: GetBucketPolicyStatusError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketReplicationError> for Error

Source§

fn from(err: GetBucketReplicationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketRequestPaymentError> for Error

Source§

fn from(err: GetBucketRequestPaymentError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketTaggingError> for Error

Source§

fn from(err: GetBucketTaggingError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketVersioningError> for Error

Source§

fn from(err: GetBucketVersioningError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBucketWebsiteError> for Error

Source§

fn from(err: GetBucketWebsiteError) -> Self

Converts to this type from the input type.
Source§

impl From<GetObjectAclError> for Error

Source§

fn from(err: GetObjectAclError) -> Self

Converts to this type from the input type.
Source§

impl From<GetObjectAttributesError> for Error

Source§

fn from(err: GetObjectAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<GetObjectError> for Error

Source§

fn from(err: GetObjectError) -> Self

Converts to this type from the input type.
Source§

impl From<GetObjectLegalHoldError> for Error

Source§

fn from(err: GetObjectLegalHoldError) -> Self

Converts to this type from the input type.
Source§

impl From<GetObjectLockConfigurationError> for Error

Source§

fn from(err: GetObjectLockConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetObjectRetentionError> for Error

Source§

fn from(err: GetObjectRetentionError) -> Self

Converts to this type from the input type.
Source§

impl From<GetObjectTaggingError> for Error

Source§

fn from(err: GetObjectTaggingError) -> Self

Converts to this type from the input type.
Source§

impl From<GetObjectTorrentError> for Error

Source§

fn from(err: GetObjectTorrentError) -> Self

Converts to this type from the input type.
Source§

impl From<GetPublicAccessBlockError> for Error

Source§

fn from(err: GetPublicAccessBlockError) -> Self

Converts to this type from the input type.
Source§

impl From<HeadBucketError> for Error

Source§

fn from(err: HeadBucketError) -> Self

Converts to this type from the input type.
Source§

impl From<HeadObjectError> for Error

Source§

fn from(err: HeadObjectError) -> Self

Converts to this type from the input type.
Source§

impl From<ListBucketAnalyticsConfigurationsError> for Error

Source§

fn from(err: ListBucketAnalyticsConfigurationsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListBucketIntelligentTieringConfigurationsError> for Error

Source§

fn from(err: ListBucketIntelligentTieringConfigurationsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListBucketInventoryConfigurationsError> for Error

Source§

fn from(err: ListBucketInventoryConfigurationsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListBucketMetricsConfigurationsError> for Error

Source§

fn from(err: ListBucketMetricsConfigurationsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListBucketsError> for Error

Source§

fn from(err: ListBucketsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListDirectoryBucketsError> for Error

Source§

fn from(err: ListDirectoryBucketsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListMultipartUploadsError> for Error

Source§

fn from(err: ListMultipartUploadsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListObjectVersionsError> for Error

Source§

fn from(err: ListObjectVersionsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListObjectsError> for Error

Source§

fn from(err: ListObjectsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListObjectsV2Error> for Error

Source§

fn from(err: ListObjectsV2Error) -> Self

Converts to this type from the input type.
Source§

impl From<ListPartsError> for Error

Source§

fn from(err: ListPartsError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketAccelerateConfigurationError> for Error

Source§

fn from(err: PutBucketAccelerateConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketAclError> for Error

Source§

fn from(err: PutBucketAclError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketAnalyticsConfigurationError> for Error

Source§

fn from(err: PutBucketAnalyticsConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketCorsError> for Error

Source§

fn from(err: PutBucketCorsError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketEncryptionError> for Error

Source§

fn from(err: PutBucketEncryptionError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketIntelligentTieringConfigurationError> for Error

Source§

fn from(err: PutBucketIntelligentTieringConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketInventoryConfigurationError> for Error

Source§

fn from(err: PutBucketInventoryConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketLifecycleConfigurationError> for Error

Source§

fn from(err: PutBucketLifecycleConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketLoggingError> for Error

Source§

fn from(err: PutBucketLoggingError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketMetricsConfigurationError> for Error

Source§

fn from(err: PutBucketMetricsConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketNotificationConfigurationError> for Error

Source§

fn from(err: PutBucketNotificationConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketOwnershipControlsError> for Error

Source§

fn from(err: PutBucketOwnershipControlsError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketPolicyError> for Error

Source§

fn from(err: PutBucketPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketReplicationError> for Error

Source§

fn from(err: PutBucketReplicationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketRequestPaymentError> for Error

Source§

fn from(err: PutBucketRequestPaymentError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketTaggingError> for Error

Source§

fn from(err: PutBucketTaggingError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketVersioningError> for Error

Source§

fn from(err: PutBucketVersioningError) -> Self

Converts to this type from the input type.
Source§

impl From<PutBucketWebsiteError> for Error

Source§

fn from(err: PutBucketWebsiteError) -> Self

Converts to this type from the input type.
Source§

impl From<PutObjectAclError> for Error

Source§

fn from(err: PutObjectAclError) -> Self

Converts to this type from the input type.
Source§

impl From<PutObjectError> for Error

Source§

fn from(err: PutObjectError) -> Self

Converts to this type from the input type.
Source§

impl From<PutObjectLegalHoldError> for Error

Source§

fn from(err: PutObjectLegalHoldError) -> Self

Converts to this type from the input type.
Source§

impl From<PutObjectLockConfigurationError> for Error

Source§

fn from(err: PutObjectLockConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutObjectRetentionError> for Error

Source§

fn from(err: PutObjectRetentionError) -> Self

Converts to this type from the input type.
Source§

impl From<PutObjectTaggingError> for Error

Source§

fn from(err: PutObjectTaggingError) -> Self

Converts to this type from the input type.
Source§

impl From<PutPublicAccessBlockError> for Error

Source§

fn from(err: PutPublicAccessBlockError) -> Self

Converts to this type from the input type.
Source§

impl From<RestoreObjectError> for Error

Source§

fn from(err: RestoreObjectError) -> Self

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl From<SelectObjectContentError> for Error

Source§

fn from(err: SelectObjectContentError) -> Self

Converts to this type from the input type.
Source§

impl From<SelectObjectContentEventStreamError> for Error

Source§

fn from(err: SelectObjectContentEventStreamError) -> Self

Converts to this type from the input type.
Source§

impl From<UploadPartCopyError> for Error

Source§

fn from(err: UploadPartCopyError) -> Self

Converts to this type from the input type.
Source§

impl From<UploadPartError> for Error

Source§

fn from(err: UploadPartError) -> 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 From<WriteGetObjectResponseError> for Error

Source§

fn from(err: WriteGetObjectResponseError) -> 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.
Source§

impl RequestIdExt for Error

Source§

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

Returns the S3 Extended Request ID necessary when contacting AWS Support.

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§

default 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