Trait aws_sdk_pinpoint::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 CreateApp

source§

impl RuntimePlugin for CreateCampaign

source§

impl RuntimePlugin for CreateEmailTemplate

source§

impl RuntimePlugin for CreateExportJob

source§

impl RuntimePlugin for CreateImportJob

source§

impl RuntimePlugin for CreateInAppTemplate

source§

impl RuntimePlugin for CreateJourney

source§

impl RuntimePlugin for CreatePushTemplate

source§

impl RuntimePlugin for CreateRecommenderConfiguration

source§

impl RuntimePlugin for CreateSegment

source§

impl RuntimePlugin for CreateSmsTemplate

source§

impl RuntimePlugin for CreateVoiceTemplate

source§

impl RuntimePlugin for DeleteAdmChannel

source§

impl RuntimePlugin for DeleteApnsChannel

source§

impl RuntimePlugin for DeleteApnsSandboxChannel

source§

impl RuntimePlugin for DeleteApnsVoipChannel

source§

impl RuntimePlugin for DeleteApnsVoipSandboxChannel

source§

impl RuntimePlugin for DeleteApp

source§

impl RuntimePlugin for DeleteBaiduChannel

source§

impl RuntimePlugin for DeleteCampaign

source§

impl RuntimePlugin for DeleteEmailChannel

source§

impl RuntimePlugin for DeleteEmailTemplate

source§

impl RuntimePlugin for DeleteEndpoint

source§

impl RuntimePlugin for DeleteEventStream

source§

impl RuntimePlugin for DeleteGcmChannel

source§

impl RuntimePlugin for DeleteInAppTemplate

source§

impl RuntimePlugin for DeleteJourney

source§

impl RuntimePlugin for DeletePushTemplate

source§

impl RuntimePlugin for DeleteRecommenderConfiguration

source§

impl RuntimePlugin for DeleteSegment

source§

impl RuntimePlugin for DeleteSmsChannel

source§

impl RuntimePlugin for DeleteSmsTemplate

source§

impl RuntimePlugin for DeleteUserEndpoints

source§

impl RuntimePlugin for DeleteVoiceChannel

source§

impl RuntimePlugin for DeleteVoiceTemplate

source§

impl RuntimePlugin for GetAdmChannel

source§

impl RuntimePlugin for GetApnsChannel

source§

impl RuntimePlugin for GetApnsSandboxChannel

source§

impl RuntimePlugin for GetApnsVoipChannel

source§

impl RuntimePlugin for GetApnsVoipSandboxChannel

source§

impl RuntimePlugin for GetApp

source§

impl RuntimePlugin for GetApplicationDateRangeKpi

source§

impl RuntimePlugin for GetApplicationSettings

source§

impl RuntimePlugin for GetApps

source§

impl RuntimePlugin for GetBaiduChannel

source§

impl RuntimePlugin for GetCampaign

source§

impl RuntimePlugin for GetCampaignActivities

source§

impl RuntimePlugin for GetCampaignDateRangeKpi

source§

impl RuntimePlugin for GetCampaignVersion

source§

impl RuntimePlugin for GetCampaignVersions

source§

impl RuntimePlugin for GetCampaigns

source§

impl RuntimePlugin for GetChannels

source§

impl RuntimePlugin for GetEmailChannel

source§

impl RuntimePlugin for GetEmailTemplate

source§

impl RuntimePlugin for GetEndpoint

source§

impl RuntimePlugin for GetEventStream

source§

impl RuntimePlugin for GetExportJob

source§

impl RuntimePlugin for GetExportJobs

source§

impl RuntimePlugin for GetGcmChannel

source§

impl RuntimePlugin for GetImportJob

source§

impl RuntimePlugin for GetImportJobs

source§

impl RuntimePlugin for GetInAppMessages

source§

impl RuntimePlugin for GetInAppTemplate

source§

impl RuntimePlugin for GetJourney

source§

impl RuntimePlugin for GetJourneyDateRangeKpi

source§

impl RuntimePlugin for GetJourneyExecutionActivityMetrics

source§

impl RuntimePlugin for GetJourneyExecutionMetrics

source§

impl RuntimePlugin for GetJourneyRunExecutionActivityMetrics

source§

impl RuntimePlugin for GetJourneyRunExecutionMetrics

source§

impl RuntimePlugin for GetJourneyRuns

source§

impl RuntimePlugin for GetPushTemplate

source§

impl RuntimePlugin for GetRecommenderConfiguration

source§

impl RuntimePlugin for GetRecommenderConfigurations

source§

impl RuntimePlugin for GetSegment

source§

impl RuntimePlugin for GetSegmentExportJobs

source§

impl RuntimePlugin for GetSegmentImportJobs

source§

impl RuntimePlugin for GetSegmentVersion

source§

impl RuntimePlugin for GetSegmentVersions

source§

impl RuntimePlugin for GetSegments

source§

impl RuntimePlugin for GetSmsChannel

source§

impl RuntimePlugin for GetSmsTemplate

source§

impl RuntimePlugin for GetUserEndpoints

source§

impl RuntimePlugin for GetVoiceChannel

source§

impl RuntimePlugin for GetVoiceTemplate

source§

impl RuntimePlugin for ListJourneys

source§

impl RuntimePlugin for ListTagsForResource

source§

impl RuntimePlugin for ListTemplateVersions

source§

impl RuntimePlugin for ListTemplates

source§

impl RuntimePlugin for PhoneNumberValidate

source§

impl RuntimePlugin for PutEventStream

source§

impl RuntimePlugin for PutEvents

source§

impl RuntimePlugin for RemoveAttributes

source§

impl RuntimePlugin for SendMessages

source§

impl RuntimePlugin for SendOTPMessage

source§

impl RuntimePlugin for SendUsersMessages

source§

impl RuntimePlugin for TagResource

source§

impl RuntimePlugin for UntagResource

source§

impl RuntimePlugin for UpdateAdmChannel

source§

impl RuntimePlugin for UpdateApnsChannel

source§

impl RuntimePlugin for UpdateApnsSandboxChannel

source§

impl RuntimePlugin for UpdateApnsVoipChannel

source§

impl RuntimePlugin for UpdateApnsVoipSandboxChannel

source§

impl RuntimePlugin for UpdateApplicationSettings

source§

impl RuntimePlugin for UpdateBaiduChannel

source§

impl RuntimePlugin for UpdateCampaign

source§

impl RuntimePlugin for UpdateEmailChannel

source§

impl RuntimePlugin for UpdateEmailTemplate

source§

impl RuntimePlugin for UpdateEndpoint

source§

impl RuntimePlugin for UpdateEndpointsBatch

source§

impl RuntimePlugin for UpdateGcmChannel

source§

impl RuntimePlugin for UpdateInAppTemplate

source§

impl RuntimePlugin for UpdateJourney

source§

impl RuntimePlugin for UpdateJourneyState

source§

impl RuntimePlugin for UpdatePushTemplate

source§

impl RuntimePlugin for UpdateRecommenderConfiguration

source§

impl RuntimePlugin for UpdateSegment

source§

impl RuntimePlugin for UpdateSmsChannel

source§

impl RuntimePlugin for UpdateSmsTemplate

source§

impl RuntimePlugin for UpdateTemplateActiveVersion

source§

impl RuntimePlugin for UpdateVoiceChannel

source§

impl RuntimePlugin for UpdateVoiceTemplate

source§

impl RuntimePlugin for VerifyOTPMessage

source§

impl RuntimePlugin for StaticRuntimePlugin

source§

impl RuntimePlugin for SharedRuntimePlugin