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 PayloadSigningOverrideRuntimePlugin

Source§

impl RuntimePlugin for NoAuthRuntimePlugin

Source§

impl RuntimePlugin for EnforceContentLengthRuntimePlugin

Source§

impl RuntimePlugin for MetricsRuntimePlugin

Source§

impl RuntimePlugin for CannedResponseDeserializer

Source§

impl RuntimePlugin for CannedRequestSerializer

Implementors§

Source§

impl RuntimePlugin for AcceptReservedNodeExchange

Source§

impl RuntimePlugin for AddPartner

Source§

impl RuntimePlugin for AssociateDataShareConsumer

Source§

impl RuntimePlugin for AuthorizeClusterSecurityGroupIngress

Source§

impl RuntimePlugin for AuthorizeDataShare

Source§

impl RuntimePlugin for AuthorizeEndpointAccess

Source§

impl RuntimePlugin for AuthorizeSnapshotAccess

Source§

impl RuntimePlugin for BatchDeleteClusterSnapshots

Source§

impl RuntimePlugin for BatchModifyClusterSnapshots

Source§

impl RuntimePlugin for CancelResize

Source§

impl RuntimePlugin for CopyClusterSnapshot

Source§

impl RuntimePlugin for CreateAuthenticationProfile

Source§

impl RuntimePlugin for CreateCluster

Source§

impl RuntimePlugin for CreateClusterParameterGroup

Source§

impl RuntimePlugin for CreateClusterSecurityGroup

Source§

impl RuntimePlugin for CreateClusterSnapshot

Source§

impl RuntimePlugin for CreateClusterSubnetGroup

Source§

impl RuntimePlugin for CreateCustomDomainAssociation

Source§

impl RuntimePlugin for CreateEndpointAccess

Source§

impl RuntimePlugin for CreateEventSubscription

Source§

impl RuntimePlugin for CreateHsmClientCertificate

Source§

impl RuntimePlugin for CreateHsmConfiguration

Source§

impl RuntimePlugin for CreateIntegration

Source§

impl RuntimePlugin for CreateRedshiftIdcApplication

Source§

impl RuntimePlugin for CreateScheduledAction

Source§

impl RuntimePlugin for CreateSnapshotCopyGrant

Source§

impl RuntimePlugin for CreateSnapshotSchedule

Source§

impl RuntimePlugin for CreateTags

Source§

impl RuntimePlugin for CreateUsageLimit

Source§

impl RuntimePlugin for DeauthorizeDataShare

Source§

impl RuntimePlugin for DeleteAuthenticationProfile

Source§

impl RuntimePlugin for DeleteCluster

Source§

impl RuntimePlugin for DeleteClusterParameterGroup

Source§

impl RuntimePlugin for DeleteClusterSecurityGroup

Source§

impl RuntimePlugin for DeleteClusterSnapshot

Source§

impl RuntimePlugin for DeleteClusterSubnetGroup

Source§

impl RuntimePlugin for DeleteCustomDomainAssociation

Source§

impl RuntimePlugin for DeleteEndpointAccess

Source§

impl RuntimePlugin for DeleteEventSubscription

Source§

impl RuntimePlugin for DeleteHsmClientCertificate

Source§

impl RuntimePlugin for DeleteHsmConfiguration

Source§

impl RuntimePlugin for DeleteIntegration

Source§

impl RuntimePlugin for DeletePartner

Source§

impl RuntimePlugin for DeleteRedshiftIdcApplication

Source§

impl RuntimePlugin for DeleteResourcePolicy

Source§

impl RuntimePlugin for DeleteScheduledAction

Source§

impl RuntimePlugin for DeleteSnapshotCopyGrant

Source§

impl RuntimePlugin for DeleteSnapshotSchedule

Source§

impl RuntimePlugin for DeleteTags

Source§

impl RuntimePlugin for DeleteUsageLimit

Source§

impl RuntimePlugin for DeregisterNamespace

Source§

impl RuntimePlugin for DescribeAccountAttributes

Source§

impl RuntimePlugin for DescribeAuthenticationProfiles

Source§

impl RuntimePlugin for DescribeClusterDbRevisions

Source§

impl RuntimePlugin for DescribeClusterParameterGroups

Source§

impl RuntimePlugin for DescribeClusterParameters

Source§

impl RuntimePlugin for DescribeClusterSecurityGroups

Source§

impl RuntimePlugin for DescribeClusterSnapshots

Source§

impl RuntimePlugin for DescribeClusterSubnetGroups

Source§

impl RuntimePlugin for DescribeClusterTracks

Source§

impl RuntimePlugin for DescribeClusterVersions

Source§

impl RuntimePlugin for DescribeClusters

Source§

impl RuntimePlugin for DescribeCustomDomainAssociations

Source§

impl RuntimePlugin for DescribeDataShares

Source§

impl RuntimePlugin for DescribeDataSharesForConsumer

Source§

impl RuntimePlugin for DescribeDataSharesForProducer

Source§

impl RuntimePlugin for DescribeDefaultClusterParameters

Source§

impl RuntimePlugin for DescribeEndpointAccess

Source§

impl RuntimePlugin for DescribeEndpointAuthorization

Source§

impl RuntimePlugin for DescribeEventCategories

Source§

impl RuntimePlugin for DescribeEventSubscriptions

Source§

impl RuntimePlugin for DescribeEvents

Source§

impl RuntimePlugin for DescribeHsmClientCertificates

Source§

impl RuntimePlugin for DescribeHsmConfigurations

Source§

impl RuntimePlugin for DescribeInboundIntegrations

Source§

impl RuntimePlugin for DescribeIntegrations

Source§

impl RuntimePlugin for DescribeLoggingStatus

Source§

impl RuntimePlugin for DescribeNodeConfigurationOptions

Source§

impl RuntimePlugin for DescribeOrderableClusterOptions

Source§

impl RuntimePlugin for DescribePartners

Source§

impl RuntimePlugin for DescribeRedshiftIdcApplications

Source§

impl RuntimePlugin for DescribeReservedNodeExchangeStatus

Source§

impl RuntimePlugin for DescribeReservedNodeOfferings

Source§

impl RuntimePlugin for DescribeReservedNodes

Source§

impl RuntimePlugin for DescribeResize

Source§

impl RuntimePlugin for DescribeScheduledActions

Source§

impl RuntimePlugin for DescribeSnapshotCopyGrants

Source§

impl RuntimePlugin for DescribeSnapshotSchedules

Source§

impl RuntimePlugin for DescribeStorage

Source§

impl RuntimePlugin for DescribeTableRestoreStatus

Source§

impl RuntimePlugin for DescribeTags

Source§

impl RuntimePlugin for DescribeUsageLimits

Source§

impl RuntimePlugin for DisableLogging

Source§

impl RuntimePlugin for DisableSnapshotCopy

Source§

impl RuntimePlugin for DisassociateDataShareConsumer

Source§

impl RuntimePlugin for EnableLogging

Source§

impl RuntimePlugin for EnableSnapshotCopy

Source§

impl RuntimePlugin for FailoverPrimaryCompute

Source§

impl RuntimePlugin for GetClusterCredentials

Source§

impl RuntimePlugin for GetClusterCredentialsWithIAM

Source§

impl RuntimePlugin for GetReservedNodeExchangeConfigurationOptions

Source§

impl RuntimePlugin for GetReservedNodeExchangeOfferings

Source§

impl RuntimePlugin for GetResourcePolicy

Source§

impl RuntimePlugin for ListRecommendations

Source§

impl RuntimePlugin for ModifyAquaConfiguration

Source§

impl RuntimePlugin for ModifyAuthenticationProfile

Source§

impl RuntimePlugin for ModifyCluster

Source§

impl RuntimePlugin for ModifyClusterDbRevision

Source§

impl RuntimePlugin for ModifyClusterIamRoles

Source§

impl RuntimePlugin for ModifyClusterMaintenance

Source§

impl RuntimePlugin for ModifyClusterParameterGroup

Source§

impl RuntimePlugin for ModifyClusterSnapshot

Source§

impl RuntimePlugin for ModifyClusterSnapshotSchedule

Source§

impl RuntimePlugin for ModifyClusterSubnetGroup

Source§

impl RuntimePlugin for ModifyCustomDomainAssociation

Source§

impl RuntimePlugin for ModifyEndpointAccess

Source§

impl RuntimePlugin for ModifyEventSubscription

Source§

impl RuntimePlugin for ModifyIntegration

Source§

impl RuntimePlugin for ModifyRedshiftIdcApplication

Source§

impl RuntimePlugin for ModifyScheduledAction

Source§

impl RuntimePlugin for ModifySnapshotCopyRetentionPeriod

Source§

impl RuntimePlugin for ModifySnapshotSchedule

Source§

impl RuntimePlugin for ModifyUsageLimit

Source§

impl RuntimePlugin for PauseCluster

Source§

impl RuntimePlugin for PurchaseReservedNodeOffering

Source§

impl RuntimePlugin for PutResourcePolicy

Source§

impl RuntimePlugin for RebootCluster

Source§

impl RuntimePlugin for RegisterNamespace

Source§

impl RuntimePlugin for RejectDataShare

Source§

impl RuntimePlugin for ResetClusterParameterGroup

Source§

impl RuntimePlugin for ResizeCluster

Source§

impl RuntimePlugin for RestoreFromClusterSnapshot

Source§

impl RuntimePlugin for RestoreTableFromClusterSnapshot

Source§

impl RuntimePlugin for ResumeCluster

Source§

impl RuntimePlugin for RevokeClusterSecurityGroupIngress

Source§

impl RuntimePlugin for RevokeEndpointAccess

Source§

impl RuntimePlugin for RevokeSnapshotAccess

Source§

impl RuntimePlugin for RotateEncryptionKey

Source§

impl RuntimePlugin for UpdatePartnerStatus

Source§

impl RuntimePlugin for StaticRuntimePlugin

Source§

impl RuntimePlugin for SharedRuntimePlugin