Trait aws_sdk_sesv2::config::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 BatchGetMetricData

source§

impl RuntimePlugin for CancelExportJob

source§

impl RuntimePlugin for CreateConfigurationSet

source§

impl RuntimePlugin for CreateConfigurationSetEventDestination

source§

impl RuntimePlugin for CreateContact

source§

impl RuntimePlugin for CreateContactList

source§

impl RuntimePlugin for CreateCustomVerificationEmailTemplate

source§

impl RuntimePlugin for CreateDedicatedIpPool

source§

impl RuntimePlugin for CreateDeliverabilityTestReport

source§

impl RuntimePlugin for CreateEmailIdentity

source§

impl RuntimePlugin for CreateEmailIdentityPolicy

source§

impl RuntimePlugin for CreateEmailTemplate

source§

impl RuntimePlugin for CreateExportJob

source§

impl RuntimePlugin for CreateImportJob

source§

impl RuntimePlugin for DeleteConfigurationSet

source§

impl RuntimePlugin for DeleteConfigurationSetEventDestination

source§

impl RuntimePlugin for DeleteContact

source§

impl RuntimePlugin for DeleteContactList

source§

impl RuntimePlugin for DeleteCustomVerificationEmailTemplate

source§

impl RuntimePlugin for DeleteDedicatedIpPool

source§

impl RuntimePlugin for DeleteEmailIdentity

source§

impl RuntimePlugin for DeleteEmailIdentityPolicy

source§

impl RuntimePlugin for DeleteEmailTemplate

source§

impl RuntimePlugin for DeleteSuppressedDestination

source§

impl RuntimePlugin for GetAccount

source§

impl RuntimePlugin for GetBlacklistReports

source§

impl RuntimePlugin for GetConfigurationSet

source§

impl RuntimePlugin for GetConfigurationSetEventDestinations

source§

impl RuntimePlugin for GetContact

source§

impl RuntimePlugin for GetContactList

source§

impl RuntimePlugin for GetCustomVerificationEmailTemplate

source§

impl RuntimePlugin for GetDedicatedIp

source§

impl RuntimePlugin for GetDedicatedIpPool

source§

impl RuntimePlugin for GetDedicatedIps

source§

impl RuntimePlugin for GetDeliverabilityDashboardOptions

source§

impl RuntimePlugin for GetDeliverabilityTestReport

source§

impl RuntimePlugin for GetDomainDeliverabilityCampaign

source§

impl RuntimePlugin for GetDomainStatisticsReport

source§

impl RuntimePlugin for GetEmailIdentity

source§

impl RuntimePlugin for GetEmailIdentityPolicies

source§

impl RuntimePlugin for GetEmailTemplate

source§

impl RuntimePlugin for GetExportJob

source§

impl RuntimePlugin for GetImportJob

source§

impl RuntimePlugin for GetMessageInsights

source§

impl RuntimePlugin for GetSuppressedDestination

source§

impl RuntimePlugin for ListConfigurationSets

source§

impl RuntimePlugin for ListContactLists

source§

impl RuntimePlugin for ListContacts

source§

impl RuntimePlugin for ListCustomVerificationEmailTemplates

source§

impl RuntimePlugin for ListDedicatedIpPools

source§

impl RuntimePlugin for ListDeliverabilityTestReports

source§

impl RuntimePlugin for ListDomainDeliverabilityCampaigns

source§

impl RuntimePlugin for ListEmailIdentities

source§

impl RuntimePlugin for ListEmailTemplates

source§

impl RuntimePlugin for ListExportJobs

source§

impl RuntimePlugin for ListImportJobs

source§

impl RuntimePlugin for ListRecommendations

source§

impl RuntimePlugin for ListSuppressedDestinations

source§

impl RuntimePlugin for ListTagsForResource

source§

impl RuntimePlugin for PutAccountDedicatedIpWarmupAttributes

source§

impl RuntimePlugin for PutAccountDetails

source§

impl RuntimePlugin for PutAccountSendingAttributes

source§

impl RuntimePlugin for PutAccountSuppressionAttributes

source§

impl RuntimePlugin for PutAccountVdmAttributes

source§

impl RuntimePlugin for PutConfigurationSetDeliveryOptions

source§

impl RuntimePlugin for PutConfigurationSetReputationOptions

source§

impl RuntimePlugin for PutConfigurationSetSendingOptions

source§

impl RuntimePlugin for PutConfigurationSetSuppressionOptions

source§

impl RuntimePlugin for PutConfigurationSetTrackingOptions

source§

impl RuntimePlugin for PutConfigurationSetVdmOptions

source§

impl RuntimePlugin for PutDedicatedIpInPool

source§

impl RuntimePlugin for PutDedicatedIpPoolScalingAttributes

source§

impl RuntimePlugin for PutDedicatedIpWarmupAttributes

source§

impl RuntimePlugin for PutDeliverabilityDashboardOption

source§

impl RuntimePlugin for PutEmailIdentityConfigurationSetAttributes

source§

impl RuntimePlugin for PutEmailIdentityDkimAttributes

source§

impl RuntimePlugin for PutEmailIdentityDkimSigningAttributes

source§

impl RuntimePlugin for PutEmailIdentityFeedbackAttributes

source§

impl RuntimePlugin for PutEmailIdentityMailFromAttributes

source§

impl RuntimePlugin for PutSuppressedDestination

source§

impl RuntimePlugin for SendBulkEmail

source§

impl RuntimePlugin for SendCustomVerificationEmail

source§

impl RuntimePlugin for SendEmail

source§

impl RuntimePlugin for TagResource

source§

impl RuntimePlugin for TestRenderEmailTemplate

source§

impl RuntimePlugin for UntagResource

source§

impl RuntimePlugin for UpdateConfigurationSetEventDestination

source§

impl RuntimePlugin for UpdateContact

source§

impl RuntimePlugin for UpdateContactList

source§

impl RuntimePlugin for UpdateCustomVerificationEmailTemplate

source§

impl RuntimePlugin for UpdateEmailIdentityPolicy

source§

impl RuntimePlugin for UpdateEmailTemplate

source§

impl RuntimePlugin for StaticRuntimePlugin

source§

impl RuntimePlugin for SharedRuntimePlugin