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