aws_sdk_workmail::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 NoAuthRuntimePlugin

Source§

impl RuntimePlugin for EnforceContentLengthRuntimePlugin

Source§

impl RuntimePlugin for CannedResponseDeserializer

Source§

impl RuntimePlugin for CannedRequestSerializer

Implementors§

Source§

impl RuntimePlugin for AssociateDelegateToResource

Source§

impl RuntimePlugin for AssociateMemberToGroup

Source§

impl RuntimePlugin for AssumeImpersonationRole

Source§

impl RuntimePlugin for CancelMailboxExportJob

Source§

impl RuntimePlugin for CreateAlias

Source§

impl RuntimePlugin for CreateAvailabilityConfiguration

Source§

impl RuntimePlugin for CreateGroup

Source§

impl RuntimePlugin for CreateIdentityCenterApplication

Source§

impl RuntimePlugin for CreateImpersonationRole

Source§

impl RuntimePlugin for CreateMobileDeviceAccessRule

Source§

impl RuntimePlugin for CreateOrganization

Source§

impl RuntimePlugin for CreateResource

Source§

impl RuntimePlugin for CreateUser

Source§

impl RuntimePlugin for DeleteAccessControlRule

Source§

impl RuntimePlugin for DeleteAlias

Source§

impl RuntimePlugin for DeleteAvailabilityConfiguration

Source§

impl RuntimePlugin for DeleteEmailMonitoringConfiguration

Source§

impl RuntimePlugin for DeleteGroup

Source§

impl RuntimePlugin for DeleteIdentityCenterApplication

Source§

impl RuntimePlugin for DeleteIdentityProviderConfiguration

Source§

impl RuntimePlugin for DeleteImpersonationRole

Source§

impl RuntimePlugin for DeleteMailboxPermissions

Source§

impl RuntimePlugin for DeleteMobileDeviceAccessOverride

Source§

impl RuntimePlugin for DeleteMobileDeviceAccessRule

Source§

impl RuntimePlugin for DeleteOrganization

Source§

impl RuntimePlugin for DeletePersonalAccessToken

Source§

impl RuntimePlugin for DeleteResource

Source§

impl RuntimePlugin for DeleteRetentionPolicy

Source§

impl RuntimePlugin for DeleteUser

Source§

impl RuntimePlugin for DeregisterFromWorkMail

Source§

impl RuntimePlugin for DeregisterMailDomain

Source§

impl RuntimePlugin for DescribeEmailMonitoringConfiguration

Source§

impl RuntimePlugin for DescribeEntity

Source§

impl RuntimePlugin for DescribeGroup

Source§

impl RuntimePlugin for DescribeIdentityProviderConfiguration

Source§

impl RuntimePlugin for DescribeInboundDmarcSettings

Source§

impl RuntimePlugin for DescribeMailboxExportJob

Source§

impl RuntimePlugin for DescribeOrganization

Source§

impl RuntimePlugin for DescribeResource

Source§

impl RuntimePlugin for DescribeUser

Source§

impl RuntimePlugin for DisassociateDelegateFromResource

Source§

impl RuntimePlugin for DisassociateMemberFromGroup

Source§

impl RuntimePlugin for GetAccessControlEffect

Source§

impl RuntimePlugin for GetDefaultRetentionPolicy

Source§

impl RuntimePlugin for GetImpersonationRole

Source§

impl RuntimePlugin for GetImpersonationRoleEffect

Source§

impl RuntimePlugin for GetMailDomain

Source§

impl RuntimePlugin for GetMailboxDetails

Source§

impl RuntimePlugin for GetMobileDeviceAccessEffect

Source§

impl RuntimePlugin for GetMobileDeviceAccessOverride

Source§

impl RuntimePlugin for GetPersonalAccessTokenMetadata

Source§

impl RuntimePlugin for ListAccessControlRules

Source§

impl RuntimePlugin for ListAliases

Source§

impl RuntimePlugin for ListAvailabilityConfigurations

Source§

impl RuntimePlugin for ListGroupMembers

Source§

impl RuntimePlugin for ListGroups

Source§

impl RuntimePlugin for ListGroupsForEntity

Source§

impl RuntimePlugin for ListImpersonationRoles

Source§

impl RuntimePlugin for ListMailDomains

Source§

impl RuntimePlugin for ListMailboxExportJobs

Source§

impl RuntimePlugin for ListMailboxPermissions

Source§

impl RuntimePlugin for ListMobileDeviceAccessOverrides

Source§

impl RuntimePlugin for ListMobileDeviceAccessRules

Source§

impl RuntimePlugin for ListOrganizations

Source§

impl RuntimePlugin for ListPersonalAccessTokens

Source§

impl RuntimePlugin for ListResourceDelegates

Source§

impl RuntimePlugin for ListResources

Source§

impl RuntimePlugin for ListTagsForResource

Source§

impl RuntimePlugin for ListUsers

Source§

impl RuntimePlugin for PutAccessControlRule

Source§

impl RuntimePlugin for PutEmailMonitoringConfiguration

Source§

impl RuntimePlugin for PutIdentityProviderConfiguration

Source§

impl RuntimePlugin for PutInboundDmarcSettings

Source§

impl RuntimePlugin for PutMailboxPermissions

Source§

impl RuntimePlugin for PutMobileDeviceAccessOverride

Source§

impl RuntimePlugin for PutRetentionPolicy

Source§

impl RuntimePlugin for RegisterMailDomain

Source§

impl RuntimePlugin for RegisterToWorkMail

Source§

impl RuntimePlugin for ResetPassword

Source§

impl RuntimePlugin for StartMailboxExportJob

Source§

impl RuntimePlugin for TagResource

Source§

impl RuntimePlugin for TestAvailabilityConfiguration

Source§

impl RuntimePlugin for UntagResource

Source§

impl RuntimePlugin for UpdateAvailabilityConfiguration

Source§

impl RuntimePlugin for UpdateDefaultMailDomain

Source§

impl RuntimePlugin for UpdateGroup

Source§

impl RuntimePlugin for UpdateImpersonationRole

Source§

impl RuntimePlugin for UpdateMailboxQuota

Source§

impl RuntimePlugin for UpdateMobileDeviceAccessRule

Source§

impl RuntimePlugin for UpdatePrimaryEmailAddress

Source§

impl RuntimePlugin for UpdateResource

Source§

impl RuntimePlugin for UpdateUser

Source§

impl RuntimePlugin for StaticRuntimePlugin

Source§

impl RuntimePlugin for SharedRuntimePlugin