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 ActivateGateway

Source§

impl RuntimePlugin for AddCache

Source§

impl RuntimePlugin for AddTagsToResource

Source§

impl RuntimePlugin for AddUploadBuffer

Source§

impl RuntimePlugin for AddWorkingStorage

Source§

impl RuntimePlugin for AssignTapePool

Source§

impl RuntimePlugin for AssociateFileSystem

Source§

impl RuntimePlugin for AttachVolume

Source§

impl RuntimePlugin for CancelArchival

Source§

impl RuntimePlugin for CancelCacheReport

Source§

impl RuntimePlugin for CancelRetrieval

Source§

impl RuntimePlugin for CreateCachediSCSIVolume

Source§

impl RuntimePlugin for CreateNFSFileShare

Source§

impl RuntimePlugin for CreateSMBFileShare

Source§

impl RuntimePlugin for CreateSnapshot

Source§

impl RuntimePlugin for CreateSnapshotFromVolumeRecoveryPoint

Source§

impl RuntimePlugin for CreateStorediSCSIVolume

Source§

impl RuntimePlugin for CreateTapePool

Source§

impl RuntimePlugin for CreateTapeWithBarcode

Source§

impl RuntimePlugin for CreateTapes

Source§

impl RuntimePlugin for DeleteAutomaticTapeCreationPolicy

Source§

impl RuntimePlugin for DeleteBandwidthRateLimit

Source§

impl RuntimePlugin for DeleteCacheReport

Source§

impl RuntimePlugin for DeleteChapCredentials

Source§

impl RuntimePlugin for DeleteFileShare

Source§

impl RuntimePlugin for DeleteGateway

Source§

impl RuntimePlugin for DeleteSnapshotSchedule

Source§

impl RuntimePlugin for DeleteTape

Source§

impl RuntimePlugin for DeleteTapeArchive

Source§

impl RuntimePlugin for DeleteTapePool

Source§

impl RuntimePlugin for DeleteVolume

Source§

impl RuntimePlugin for DescribeAvailabilityMonitorTest

Source§

impl RuntimePlugin for DescribeBandwidthRateLimit

Source§

impl RuntimePlugin for DescribeBandwidthRateLimitSchedule

Source§

impl RuntimePlugin for DescribeCache

Source§

impl RuntimePlugin for DescribeCacheReport

Source§

impl RuntimePlugin for DescribeCachediSCSIVolumes

Source§

impl RuntimePlugin for DescribeChapCredentials

Source§

impl RuntimePlugin for DescribeFileSystemAssociations

Source§

impl RuntimePlugin for DescribeGatewayInformation

Source§

impl RuntimePlugin for DescribeMaintenanceStartTime

Source§

impl RuntimePlugin for DescribeNFSFileShares

Source§

impl RuntimePlugin for DescribeSMBFileShares

Source§

impl RuntimePlugin for DescribeSMBSettings

Source§

impl RuntimePlugin for DescribeSnapshotSchedule

Source§

impl RuntimePlugin for DescribeStorediSCSIVolumes

Source§

impl RuntimePlugin for DescribeTapeArchives

Source§

impl RuntimePlugin for DescribeTapeRecoveryPoints

Source§

impl RuntimePlugin for DescribeTapes

Source§

impl RuntimePlugin for DescribeUploadBuffer

Source§

impl RuntimePlugin for DescribeVTLDevices

Source§

impl RuntimePlugin for DescribeWorkingStorage

Source§

impl RuntimePlugin for DetachVolume

Source§

impl RuntimePlugin for DisableGateway

Source§

impl RuntimePlugin for DisassociateFileSystem

Source§

impl RuntimePlugin for EvictFilesFailingUpload

Source§

impl RuntimePlugin for JoinDomain

Source§

impl RuntimePlugin for ListAutomaticTapeCreationPolicies

Source§

impl RuntimePlugin for ListCacheReports

Source§

impl RuntimePlugin for ListFileShares

Source§

impl RuntimePlugin for ListFileSystemAssociations

Source§

impl RuntimePlugin for ListGateways

Source§

impl RuntimePlugin for ListLocalDisks

Source§

impl RuntimePlugin for ListTagsForResource

Source§

impl RuntimePlugin for ListTapePools

Source§

impl RuntimePlugin for ListTapes

Source§

impl RuntimePlugin for ListVolumeInitiators

Source§

impl RuntimePlugin for ListVolumeRecoveryPoints

Source§

impl RuntimePlugin for ListVolumes

Source§

impl RuntimePlugin for NotifyWhenUploaded

Source§

impl RuntimePlugin for RefreshCache

Source§

impl RuntimePlugin for RemoveTagsFromResource

Source§

impl RuntimePlugin for ResetCache

Source§

impl RuntimePlugin for RetrieveTapeArchive

Source§

impl RuntimePlugin for RetrieveTapeRecoveryPoint

Source§

impl RuntimePlugin for SetLocalConsolePassword

Source§

impl RuntimePlugin for SetSMBGuestPassword

Source§

impl RuntimePlugin for ShutdownGateway

Source§

impl RuntimePlugin for StartAvailabilityMonitorTest

Source§

impl RuntimePlugin for StartCacheReport

Source§

impl RuntimePlugin for StartGateway

Source§

impl RuntimePlugin for UpdateAutomaticTapeCreationPolicy

Source§

impl RuntimePlugin for UpdateBandwidthRateLimit

Source§

impl RuntimePlugin for UpdateBandwidthRateLimitSchedule

Source§

impl RuntimePlugin for UpdateChapCredentials

Source§

impl RuntimePlugin for UpdateFileSystemAssociation

Source§

impl RuntimePlugin for UpdateGatewayInformation

Source§

impl RuntimePlugin for UpdateGatewaySoftwareNow

Source§

impl RuntimePlugin for UpdateMaintenanceStartTime

Source§

impl RuntimePlugin for UpdateNFSFileShare

Source§

impl RuntimePlugin for UpdateSMBFileShare

Source§

impl RuntimePlugin for UpdateSMBFileShareVisibility

Source§

impl RuntimePlugin for UpdateSMBLocalGroups

Source§

impl RuntimePlugin for UpdateSMBSecurityStrategy

Source§

impl RuntimePlugin for UpdateSnapshotSchedule

Source§

impl RuntimePlugin for UpdateVTLDeviceType

Source§

impl RuntimePlugin for StaticRuntimePlugin

Source§

impl RuntimePlugin for SharedRuntimePlugin