aws_sdk_s3::error

Trait ProvideErrorMetadata

Source
pub trait ProvideErrorMetadata {
    // Required method
    fn meta(&self) -> &ErrorMetadata;

    // Provided methods
    fn code(&self) -> Option<&str> { ... }
    fn message(&self) -> Option<&str> { ... }
}
Expand description

Trait to retrieve error metadata from a result

Required Methods§

Source

fn meta(&self) -> &ErrorMetadata

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

Provided Methods§

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.

Implementations on Foreign Types§

Source§

impl<E, R> ProvideErrorMetadata for SdkError<E, R>

Source§

impl<O, E> ProvideErrorMetadata for WaiterError<O, E>

Implementors§

Source§

impl ProvideErrorMetadata for Error

Source§

impl ProvideErrorMetadata for AbortMultipartUploadError

Source§

impl ProvideErrorMetadata for CompleteMultipartUploadError

Source§

impl ProvideErrorMetadata for CopyObjectError

Source§

impl ProvideErrorMetadata for CreateBucketError

Source§

impl ProvideErrorMetadata for CreateMultipartUploadError

Source§

impl ProvideErrorMetadata for CreateSessionError

Source§

impl ProvideErrorMetadata for DeleteBucketError

Source§

impl ProvideErrorMetadata for DeleteBucketAnalyticsConfigurationError

Source§

impl ProvideErrorMetadata for DeleteBucketCorsError

Source§

impl ProvideErrorMetadata for DeleteBucketEncryptionError

Source§

impl ProvideErrorMetadata for DeleteBucketIntelligentTieringConfigurationError

Source§

impl ProvideErrorMetadata for DeleteBucketInventoryConfigurationError

Source§

impl ProvideErrorMetadata for DeleteBucketLifecycleError

Source§

impl ProvideErrorMetadata for DeleteBucketMetricsConfigurationError

Source§

impl ProvideErrorMetadata for DeleteBucketOwnershipControlsError

Source§

impl ProvideErrorMetadata for DeleteBucketPolicyError

Source§

impl ProvideErrorMetadata for DeleteBucketReplicationError

Source§

impl ProvideErrorMetadata for DeleteBucketTaggingError

Source§

impl ProvideErrorMetadata for DeleteBucketWebsiteError

Source§

impl ProvideErrorMetadata for DeleteObjectError

Source§

impl ProvideErrorMetadata for DeleteObjectTaggingError

Source§

impl ProvideErrorMetadata for DeleteObjectsError

Source§

impl ProvideErrorMetadata for DeletePublicAccessBlockError

Source§

impl ProvideErrorMetadata for GetBucketAccelerateConfigurationError

Source§

impl ProvideErrorMetadata for GetBucketAclError

Source§

impl ProvideErrorMetadata for GetBucketAnalyticsConfigurationError

Source§

impl ProvideErrorMetadata for GetBucketCorsError

Source§

impl ProvideErrorMetadata for GetBucketEncryptionError

Source§

impl ProvideErrorMetadata for GetBucketIntelligentTieringConfigurationError

Source§

impl ProvideErrorMetadata for GetBucketInventoryConfigurationError

Source§

impl ProvideErrorMetadata for GetBucketLifecycleConfigurationError

Source§

impl ProvideErrorMetadata for GetBucketLocationError

Source§

impl ProvideErrorMetadata for GetBucketLoggingError

Source§

impl ProvideErrorMetadata for GetBucketMetricsConfigurationError

Source§

impl ProvideErrorMetadata for GetBucketNotificationConfigurationError

Source§

impl ProvideErrorMetadata for GetBucketOwnershipControlsError

Source§

impl ProvideErrorMetadata for GetBucketPolicyError

Source§

impl ProvideErrorMetadata for GetBucketPolicyStatusError

Source§

impl ProvideErrorMetadata for GetBucketReplicationError

Source§

impl ProvideErrorMetadata for GetBucketRequestPaymentError

Source§

impl ProvideErrorMetadata for GetBucketTaggingError

Source§

impl ProvideErrorMetadata for GetBucketVersioningError

Source§

impl ProvideErrorMetadata for GetBucketWebsiteError

Source§

impl ProvideErrorMetadata for GetObjectError

Source§

impl ProvideErrorMetadata for GetObjectAclError

Source§

impl ProvideErrorMetadata for GetObjectAttributesError

Source§

impl ProvideErrorMetadata for GetObjectLegalHoldError

Source§

impl ProvideErrorMetadata for GetObjectLockConfigurationError

Source§

impl ProvideErrorMetadata for GetObjectRetentionError

Source§

impl ProvideErrorMetadata for GetObjectTaggingError

Source§

impl ProvideErrorMetadata for GetObjectTorrentError

Source§

impl ProvideErrorMetadata for GetPublicAccessBlockError

Source§

impl ProvideErrorMetadata for HeadBucketError

Source§

impl ProvideErrorMetadata for HeadObjectError

Source§

impl ProvideErrorMetadata for ListBucketAnalyticsConfigurationsError

Source§

impl ProvideErrorMetadata for ListBucketIntelligentTieringConfigurationsError

Source§

impl ProvideErrorMetadata for ListBucketInventoryConfigurationsError

Source§

impl ProvideErrorMetadata for ListBucketMetricsConfigurationsError

Source§

impl ProvideErrorMetadata for ListBucketsError

Source§

impl ProvideErrorMetadata for ListDirectoryBucketsError

Source§

impl ProvideErrorMetadata for ListMultipartUploadsError

Source§

impl ProvideErrorMetadata for ListObjectVersionsError

Source§

impl ProvideErrorMetadata for ListObjectsError

Source§

impl ProvideErrorMetadata for ListObjectsV2Error

Source§

impl ProvideErrorMetadata for ListPartsError

Source§

impl ProvideErrorMetadata for PutBucketAccelerateConfigurationError

Source§

impl ProvideErrorMetadata for PutBucketAclError

Source§

impl ProvideErrorMetadata for PutBucketAnalyticsConfigurationError

Source§

impl ProvideErrorMetadata for PutBucketCorsError

Source§

impl ProvideErrorMetadata for PutBucketEncryptionError

Source§

impl ProvideErrorMetadata for PutBucketIntelligentTieringConfigurationError

Source§

impl ProvideErrorMetadata for PutBucketInventoryConfigurationError

Source§

impl ProvideErrorMetadata for PutBucketLifecycleConfigurationError

Source§

impl ProvideErrorMetadata for PutBucketLoggingError

Source§

impl ProvideErrorMetadata for PutBucketMetricsConfigurationError

Source§

impl ProvideErrorMetadata for PutBucketNotificationConfigurationError

Source§

impl ProvideErrorMetadata for PutBucketOwnershipControlsError

Source§

impl ProvideErrorMetadata for PutBucketPolicyError

Source§

impl ProvideErrorMetadata for PutBucketReplicationError

Source§

impl ProvideErrorMetadata for PutBucketRequestPaymentError

Source§

impl ProvideErrorMetadata for PutBucketTaggingError

Source§

impl ProvideErrorMetadata for PutBucketVersioningError

Source§

impl ProvideErrorMetadata for PutBucketWebsiteError

Source§

impl ProvideErrorMetadata for PutObjectError

Source§

impl ProvideErrorMetadata for PutObjectAclError

Source§

impl ProvideErrorMetadata for PutObjectLegalHoldError

Source§

impl ProvideErrorMetadata for PutObjectLockConfigurationError

Source§

impl ProvideErrorMetadata for PutObjectRetentionError

Source§

impl ProvideErrorMetadata for PutObjectTaggingError

Source§

impl ProvideErrorMetadata for PutPublicAccessBlockError

Source§

impl ProvideErrorMetadata for RestoreObjectError

Source§

impl ProvideErrorMetadata for SelectObjectContentError

Source§

impl ProvideErrorMetadata for UploadPartError

Source§

impl ProvideErrorMetadata for UploadPartCopyError

Source§

impl ProvideErrorMetadata for WriteGetObjectResponseError

Source§

impl ProvideErrorMetadata for SelectObjectContentEventStreamError

Source§

impl ProvideErrorMetadata for BucketAlreadyExists

Source§

impl ProvideErrorMetadata for BucketAlreadyOwnedByYou

Source§

impl ProvideErrorMetadata for EncryptionTypeMismatch

Source§

impl ProvideErrorMetadata for InvalidObjectState

Source§

impl ProvideErrorMetadata for InvalidRequest

Source§

impl ProvideErrorMetadata for InvalidWriteOffset

Source§

impl ProvideErrorMetadata for NoSuchBucket

Source§

impl ProvideErrorMetadata for NoSuchKey

Source§

impl ProvideErrorMetadata for NoSuchUpload

Source§

impl ProvideErrorMetadata for NotFound

Source§

impl ProvideErrorMetadata for ObjectAlreadyInActiveTierError

Source§

impl ProvideErrorMetadata for ObjectNotInActiveTierError

Source§

impl ProvideErrorMetadata for TooManyParts

Source§

impl ProvideErrorMetadata for ErrorMetadata