aws_sdk_s3::config

Trait RuntimePlugin

Source
pub trait RuntimePlugin:
    Debug
    + Send
    + Sync {
    // Provided methods
    fn order(&self) -> Order { ... }
    fn config(&self) -> Option<FrozenLayer> { ... }
    fn runtime_components(
        &self,
        current_components: &RuntimeComponentsBuilder,
    ) -> Cow<'_, RuntimeComponentsBuilder> { ... }
}
Expand description

Runtime plugin trait

A RuntimePlugin is the unit of configuration for augmenting the client with new behavior.

Runtime plugins can register interceptors, set runtime components, and modify configuration.

Provided Methods§

Source

fn order(&self) -> Order

Runtime plugin ordering.

There are two runtime plugin “levels” that run in the following order:

  1. Service runtime plugins - runtime plugins that pertain to the entire service.
  2. Operation runtime plugins - runtime plugins relevant only to a single operation.

This function is used to determine runtime plugin order within those levels. So regardless of this Order value, service runtime plugins will still always execute before operation runtime plugins. However, Defaults service runtime plugins will run before Overrides service runtime plugins.

Source

fn config(&self) -> Option<FrozenLayer>

Optionally returns additional config that should be added to the ConfigBag.

As a best practice, a frozen layer should be stored on the runtime plugin instance as a member, and then cloned upon return since that clone is cheap. Constructing a new Layer and freezing it will require a lot of allocations.

Source

fn runtime_components( &self, current_components: &RuntimeComponentsBuilder, ) -> Cow<'_, RuntimeComponentsBuilder>

Returns a RuntimeComponentsBuilder to incorporate into the final runtime components.

The order of runtime plugins determines which runtime components “win”. Components set by later runtime plugins will override those set by earlier runtime plugins.

If no runtime component changes are desired, just return an empty builder.

This method returns a Cow for flexibility. Some implementers may want to store the components builder as a member and return a reference to it, while others may need to create the builder every call. If possible, returning a reference is preferred for performance.

Components configured by previous runtime plugins are in the current_components argument, and can be used to create nested/wrapped components, such as a connector calling into an inner (customer provided) connector.

Implementations on Foreign Types§

Source§

impl RuntimePlugin for NoAuthRuntimePlugin

Source§

impl RuntimePlugin for EnforceContentLengthRuntimePlugin

Source§

impl RuntimePlugin for CannedResponseDeserializer

Source§

impl RuntimePlugin for CannedRequestSerializer

Implementors§

Source§

impl RuntimePlugin for AbortMultipartUpload

Source§

impl RuntimePlugin for CompleteMultipartUpload

Source§

impl RuntimePlugin for CopyObject

Source§

impl RuntimePlugin for CreateBucket

Source§

impl RuntimePlugin for CreateMultipartUpload

Source§

impl RuntimePlugin for CreateSession

Source§

impl RuntimePlugin for DeleteBucket

Source§

impl RuntimePlugin for DeleteBucketAnalyticsConfiguration

Source§

impl RuntimePlugin for DeleteBucketCors

Source§

impl RuntimePlugin for DeleteBucketEncryption

Source§

impl RuntimePlugin for DeleteBucketIntelligentTieringConfiguration

Source§

impl RuntimePlugin for DeleteBucketInventoryConfiguration

Source§

impl RuntimePlugin for DeleteBucketLifecycle

Source§

impl RuntimePlugin for DeleteBucketMetricsConfiguration

Source§

impl RuntimePlugin for DeleteBucketOwnershipControls

Source§

impl RuntimePlugin for DeleteBucketPolicy

Source§

impl RuntimePlugin for DeleteBucketReplication

Source§

impl RuntimePlugin for DeleteBucketTagging

Source§

impl RuntimePlugin for DeleteBucketWebsite

Source§

impl RuntimePlugin for DeleteObject

Source§

impl RuntimePlugin for DeleteObjectTagging

Source§

impl RuntimePlugin for DeleteObjects

Source§

impl RuntimePlugin for DeletePublicAccessBlock

Source§

impl RuntimePlugin for GetBucketAccelerateConfiguration

Source§

impl RuntimePlugin for GetBucketAcl

Source§

impl RuntimePlugin for GetBucketAnalyticsConfiguration

Source§

impl RuntimePlugin for GetBucketCors

Source§

impl RuntimePlugin for GetBucketEncryption

Source§

impl RuntimePlugin for GetBucketIntelligentTieringConfiguration

Source§

impl RuntimePlugin for GetBucketInventoryConfiguration

Source§

impl RuntimePlugin for GetBucketLifecycleConfiguration

Source§

impl RuntimePlugin for GetBucketLocation

Source§

impl RuntimePlugin for GetBucketLogging

Source§

impl RuntimePlugin for GetBucketMetricsConfiguration

Source§

impl RuntimePlugin for GetBucketNotificationConfiguration

Source§

impl RuntimePlugin for GetBucketOwnershipControls

Source§

impl RuntimePlugin for GetBucketPolicy

Source§

impl RuntimePlugin for GetBucketPolicyStatus

Source§

impl RuntimePlugin for GetBucketReplication

Source§

impl RuntimePlugin for GetBucketRequestPayment

Source§

impl RuntimePlugin for GetBucketTagging

Source§

impl RuntimePlugin for GetBucketVersioning

Source§

impl RuntimePlugin for GetBucketWebsite

Source§

impl RuntimePlugin for GetObject

Source§

impl RuntimePlugin for GetObjectAcl

Source§

impl RuntimePlugin for GetObjectAttributes

Source§

impl RuntimePlugin for GetObjectLegalHold

Source§

impl RuntimePlugin for GetObjectLockConfiguration

Source§

impl RuntimePlugin for GetObjectRetention

Source§

impl RuntimePlugin for GetObjectTagging

Source§

impl RuntimePlugin for GetObjectTorrent

Source§

impl RuntimePlugin for GetPublicAccessBlock

Source§

impl RuntimePlugin for HeadBucket

Source§

impl RuntimePlugin for HeadObject

Source§

impl RuntimePlugin for ListBucketAnalyticsConfigurations

Source§

impl RuntimePlugin for ListBucketIntelligentTieringConfigurations

Source§

impl RuntimePlugin for ListBucketInventoryConfigurations

Source§

impl RuntimePlugin for ListBucketMetricsConfigurations

Source§

impl RuntimePlugin for ListBuckets

Source§

impl RuntimePlugin for ListDirectoryBuckets

Source§

impl RuntimePlugin for ListMultipartUploads

Source§

impl RuntimePlugin for ListObjectVersions

Source§

impl RuntimePlugin for ListObjects

Source§

impl RuntimePlugin for ListObjectsV2

Source§

impl RuntimePlugin for ListParts

Source§

impl RuntimePlugin for PutBucketAccelerateConfiguration

Source§

impl RuntimePlugin for PutBucketAcl

Source§

impl RuntimePlugin for PutBucketAnalyticsConfiguration

Source§

impl RuntimePlugin for PutBucketCors

Source§

impl RuntimePlugin for PutBucketEncryption

Source§

impl RuntimePlugin for PutBucketIntelligentTieringConfiguration

Source§

impl RuntimePlugin for PutBucketInventoryConfiguration

Source§

impl RuntimePlugin for PutBucketLifecycleConfiguration

Source§

impl RuntimePlugin for PutBucketLogging

Source§

impl RuntimePlugin for PutBucketMetricsConfiguration

Source§

impl RuntimePlugin for PutBucketNotificationConfiguration

Source§

impl RuntimePlugin for PutBucketOwnershipControls

Source§

impl RuntimePlugin for PutBucketPolicy

Source§

impl RuntimePlugin for PutBucketReplication

Source§

impl RuntimePlugin for PutBucketRequestPayment

Source§

impl RuntimePlugin for PutBucketTagging

Source§

impl RuntimePlugin for PutBucketVersioning

Source§

impl RuntimePlugin for PutBucketWebsite

Source§

impl RuntimePlugin for PutObject

Source§

impl RuntimePlugin for PutObjectAcl

Source§

impl RuntimePlugin for PutObjectLegalHold

Source§

impl RuntimePlugin for PutObjectLockConfiguration

Source§

impl RuntimePlugin for PutObjectRetention

Source§

impl RuntimePlugin for PutObjectTagging

Source§

impl RuntimePlugin for PutPublicAccessBlock

Source§

impl RuntimePlugin for RestoreObject

Source§

impl RuntimePlugin for SelectObjectContent

Source§

impl RuntimePlugin for UploadPart

Source§

impl RuntimePlugin for UploadPartCopy

Source§

impl RuntimePlugin for WriteGetObjectResponse

Source§

impl RuntimePlugin for StaticRuntimePlugin

Source§

impl RuntimePlugin for SharedRuntimePlugin