aws_sdk_devicefarm::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 PayloadSigningOverrideRuntimePlugin

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 CreateDevicePool

Source§

impl RuntimePlugin for CreateInstanceProfile

Source§

impl RuntimePlugin for CreateNetworkProfile

Source§

impl RuntimePlugin for CreateProject

Source§

impl RuntimePlugin for CreateRemoteAccessSession

Source§

impl RuntimePlugin for CreateTestGridProject

Source§

impl RuntimePlugin for CreateTestGridUrl

Source§

impl RuntimePlugin for CreateUpload

Source§

impl RuntimePlugin for CreateVPCEConfiguration

Source§

impl RuntimePlugin for DeleteDevicePool

Source§

impl RuntimePlugin for DeleteInstanceProfile

Source§

impl RuntimePlugin for DeleteNetworkProfile

Source§

impl RuntimePlugin for DeleteProject

Source§

impl RuntimePlugin for DeleteRemoteAccessSession

Source§

impl RuntimePlugin for DeleteRun

Source§

impl RuntimePlugin for DeleteTestGridProject

Source§

impl RuntimePlugin for DeleteUpload

Source§

impl RuntimePlugin for DeleteVPCEConfiguration

Source§

impl RuntimePlugin for GetAccountSettings

Source§

impl RuntimePlugin for GetDevice

Source§

impl RuntimePlugin for GetDeviceInstance

Source§

impl RuntimePlugin for GetDevicePool

Source§

impl RuntimePlugin for GetDevicePoolCompatibility

Source§

impl RuntimePlugin for GetInstanceProfile

Source§

impl RuntimePlugin for GetJob

Source§

impl RuntimePlugin for GetNetworkProfile

Source§

impl RuntimePlugin for GetOfferingStatus

Source§

impl RuntimePlugin for GetProject

Source§

impl RuntimePlugin for GetRemoteAccessSession

Source§

impl RuntimePlugin for GetRun

Source§

impl RuntimePlugin for GetSuite

Source§

impl RuntimePlugin for GetTest

Source§

impl RuntimePlugin for GetTestGridProject

Source§

impl RuntimePlugin for GetTestGridSession

Source§

impl RuntimePlugin for GetUpload

Source§

impl RuntimePlugin for GetVPCEConfiguration

Source§

impl RuntimePlugin for InstallToRemoteAccessSession

Source§

impl RuntimePlugin for ListArtifacts

Source§

impl RuntimePlugin for ListDeviceInstances

Source§

impl RuntimePlugin for ListDevicePools

Source§

impl RuntimePlugin for ListDevices

Source§

impl RuntimePlugin for ListInstanceProfiles

Source§

impl RuntimePlugin for ListJobs

Source§

impl RuntimePlugin for ListNetworkProfiles

Source§

impl RuntimePlugin for ListOfferingPromotions

Source§

impl RuntimePlugin for ListOfferingTransactions

Source§

impl RuntimePlugin for ListOfferings

Source§

impl RuntimePlugin for ListProjects

Source§

impl RuntimePlugin for ListRemoteAccessSessions

Source§

impl RuntimePlugin for ListRuns

Source§

impl RuntimePlugin for ListSamples

Source§

impl RuntimePlugin for ListSuites

Source§

impl RuntimePlugin for ListTagsForResource

Source§

impl RuntimePlugin for ListTestGridProjects

Source§

impl RuntimePlugin for ListTestGridSessionActions

Source§

impl RuntimePlugin for ListTestGridSessionArtifacts

Source§

impl RuntimePlugin for ListTestGridSessions

Source§

impl RuntimePlugin for ListTests

Source§

impl RuntimePlugin for ListUniqueProblems

Source§

impl RuntimePlugin for ListUploads

Source§

impl RuntimePlugin for ListVPCEConfigurations

Source§

impl RuntimePlugin for PurchaseOffering

Source§

impl RuntimePlugin for RenewOffering

Source§

impl RuntimePlugin for ScheduleRun

Source§

impl RuntimePlugin for StopJob

Source§

impl RuntimePlugin for StopRemoteAccessSession

Source§

impl RuntimePlugin for StopRun

Source§

impl RuntimePlugin for TagResource

Source§

impl RuntimePlugin for UntagResource

Source§

impl RuntimePlugin for UpdateDeviceInstance

Source§

impl RuntimePlugin for UpdateDevicePool

Source§

impl RuntimePlugin for UpdateInstanceProfile

Source§

impl RuntimePlugin for UpdateNetworkProfile

Source§

impl RuntimePlugin for UpdateProject

Source§

impl RuntimePlugin for UpdateTestGridProject

Source§

impl RuntimePlugin for UpdateUpload

Source§

impl RuntimePlugin for UpdateVPCEConfiguration

Source§

impl RuntimePlugin for StaticRuntimePlugin

Source§

impl RuntimePlugin for SharedRuntimePlugin