Trait aws_sdk_chime::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 AssociatePhoneNumberWithUser

source§

impl RuntimePlugin for AssociatePhoneNumbersWithVoiceConnector

source§

impl RuntimePlugin for AssociatePhoneNumbersWithVoiceConnectorGroup

source§

impl RuntimePlugin for AssociateSigninDelegateGroupsWithAccount

source§

impl RuntimePlugin for BatchCreateAttendee

source§

impl RuntimePlugin for BatchCreateChannelMembership

source§

impl RuntimePlugin for BatchCreateRoomMembership

source§

impl RuntimePlugin for BatchDeletePhoneNumber

source§

impl RuntimePlugin for BatchSuspendUser

source§

impl RuntimePlugin for BatchUnsuspendUser

source§

impl RuntimePlugin for BatchUpdatePhoneNumber

source§

impl RuntimePlugin for BatchUpdateUser

source§

impl RuntimePlugin for CreateAccount

source§

impl RuntimePlugin for CreateAppInstance

source§

impl RuntimePlugin for CreateAppInstanceAdmin

source§

impl RuntimePlugin for CreateAppInstanceUser

source§

impl RuntimePlugin for CreateAttendee

source§

impl RuntimePlugin for CreateBot

source§

impl RuntimePlugin for CreateChannel

source§

impl RuntimePlugin for CreateChannelBan

source§

impl RuntimePlugin for CreateChannelMembership

source§

impl RuntimePlugin for CreateChannelModerator

source§

impl RuntimePlugin for CreateMediaCapturePipeline

source§

impl RuntimePlugin for CreateMeeting

source§

impl RuntimePlugin for CreateMeetingDialOut

source§

impl RuntimePlugin for CreateMeetingWithAttendees

source§

impl RuntimePlugin for CreatePhoneNumberOrder

source§

impl RuntimePlugin for CreateProxySession

source§

impl RuntimePlugin for CreateRoom

source§

impl RuntimePlugin for CreateRoomMembership

source§

impl RuntimePlugin for CreateSipMediaApplication

source§

impl RuntimePlugin for CreateSipMediaApplicationCall

source§

impl RuntimePlugin for CreateSipRule

source§

impl RuntimePlugin for CreateUser

source§

impl RuntimePlugin for CreateVoiceConnector

source§

impl RuntimePlugin for CreateVoiceConnectorGroup

source§

impl RuntimePlugin for DeleteAccount

source§

impl RuntimePlugin for DeleteAppInstance

source§

impl RuntimePlugin for DeleteAppInstanceAdmin

source§

impl RuntimePlugin for DeleteAppInstanceStreamingConfigurations

source§

impl RuntimePlugin for DeleteAppInstanceUser

source§

impl RuntimePlugin for DeleteAttendee

source§

impl RuntimePlugin for DeleteChannel

source§

impl RuntimePlugin for DeleteChannelBan

source§

impl RuntimePlugin for DeleteChannelMembership

source§

impl RuntimePlugin for DeleteChannelMessage

source§

impl RuntimePlugin for DeleteChannelModerator

source§

impl RuntimePlugin for DeleteEventsConfiguration

source§

impl RuntimePlugin for DeleteMediaCapturePipeline

source§

impl RuntimePlugin for DeleteMeeting

source§

impl RuntimePlugin for DeletePhoneNumber

source§

impl RuntimePlugin for DeleteProxySession

source§

impl RuntimePlugin for DeleteRoom

source§

impl RuntimePlugin for DeleteRoomMembership

source§

impl RuntimePlugin for DeleteSipMediaApplication

source§

impl RuntimePlugin for DeleteSipRule

source§

impl RuntimePlugin for DeleteVoiceConnector

source§

impl RuntimePlugin for DeleteVoiceConnectorEmergencyCallingConfiguration

source§

impl RuntimePlugin for DeleteVoiceConnectorGroup

source§

impl RuntimePlugin for DeleteVoiceConnectorOrigination

source§

impl RuntimePlugin for DeleteVoiceConnectorProxy

source§

impl RuntimePlugin for DeleteVoiceConnectorStreamingConfiguration

source§

impl RuntimePlugin for DeleteVoiceConnectorTermination

source§

impl RuntimePlugin for DeleteVoiceConnectorTerminationCredentials

source§

impl RuntimePlugin for DescribeAppInstance

source§

impl RuntimePlugin for DescribeAppInstanceAdmin

source§

impl RuntimePlugin for DescribeAppInstanceUser

source§

impl RuntimePlugin for DescribeChannel

source§

impl RuntimePlugin for DescribeChannelBan

source§

impl RuntimePlugin for DescribeChannelMembership

source§

impl RuntimePlugin for DescribeChannelMembershipForAppInstanceUser

source§

impl RuntimePlugin for DescribeChannelModeratedByAppInstanceUser

source§

impl RuntimePlugin for DescribeChannelModerator

source§

impl RuntimePlugin for DisassociatePhoneNumberFromUser

source§

impl RuntimePlugin for DisassociatePhoneNumbersFromVoiceConnector

source§

impl RuntimePlugin for DisassociatePhoneNumbersFromVoiceConnectorGroup

source§

impl RuntimePlugin for DisassociateSigninDelegateGroupsFromAccount

source§

impl RuntimePlugin for GetAccount

source§

impl RuntimePlugin for GetAccountSettings

source§

impl RuntimePlugin for GetAppInstanceRetentionSettings

source§

impl RuntimePlugin for GetAppInstanceStreamingConfigurations

source§

impl RuntimePlugin for GetAttendee

source§

impl RuntimePlugin for GetBot

source§

impl RuntimePlugin for GetChannelMessage

source§

impl RuntimePlugin for GetEventsConfiguration

source§

impl RuntimePlugin for GetGlobalSettings

source§

impl RuntimePlugin for GetMediaCapturePipeline

source§

impl RuntimePlugin for GetMeeting

source§

impl RuntimePlugin for GetMessagingSessionEndpoint

source§

impl RuntimePlugin for GetPhoneNumber

source§

impl RuntimePlugin for GetPhoneNumberOrder

source§

impl RuntimePlugin for GetPhoneNumberSettings

source§

impl RuntimePlugin for GetProxySession

source§

impl RuntimePlugin for GetRetentionSettings

source§

impl RuntimePlugin for GetRoom

source§

impl RuntimePlugin for GetSipMediaApplication

source§

impl RuntimePlugin for GetSipMediaApplicationLoggingConfiguration

source§

impl RuntimePlugin for GetSipRule

source§

impl RuntimePlugin for GetUser

source§

impl RuntimePlugin for GetUserSettings

source§

impl RuntimePlugin for GetVoiceConnector

source§

impl RuntimePlugin for GetVoiceConnectorEmergencyCallingConfiguration

source§

impl RuntimePlugin for GetVoiceConnectorGroup

source§

impl RuntimePlugin for GetVoiceConnectorLoggingConfiguration

source§

impl RuntimePlugin for GetVoiceConnectorOrigination

source§

impl RuntimePlugin for GetVoiceConnectorProxy

source§

impl RuntimePlugin for GetVoiceConnectorStreamingConfiguration

source§

impl RuntimePlugin for GetVoiceConnectorTermination

source§

impl RuntimePlugin for GetVoiceConnectorTerminationHealth

source§

impl RuntimePlugin for InviteUsers

source§

impl RuntimePlugin for ListAccounts

source§

impl RuntimePlugin for ListAppInstanceAdmins

source§

impl RuntimePlugin for ListAppInstanceUsers

source§

impl RuntimePlugin for ListAppInstances

source§

impl RuntimePlugin for ListAttendeeTags

source§

impl RuntimePlugin for ListAttendees

source§

impl RuntimePlugin for ListBots

source§

impl RuntimePlugin for ListChannelBans

source§

impl RuntimePlugin for ListChannelMemberships

source§

impl RuntimePlugin for ListChannelMembershipsForAppInstanceUser

source§

impl RuntimePlugin for ListChannelMessages

source§

impl RuntimePlugin for ListChannelModerators

source§

impl RuntimePlugin for ListChannels

source§

impl RuntimePlugin for ListChannelsModeratedByAppInstanceUser

source§

impl RuntimePlugin for ListMediaCapturePipelines

source§

impl RuntimePlugin for ListMeetingTags

source§

impl RuntimePlugin for ListMeetings

source§

impl RuntimePlugin for ListPhoneNumberOrders

source§

impl RuntimePlugin for ListPhoneNumbers

source§

impl RuntimePlugin for ListProxySessions

source§

impl RuntimePlugin for ListRoomMemberships

source§

impl RuntimePlugin for ListRooms

source§

impl RuntimePlugin for ListSipMediaApplications

source§

impl RuntimePlugin for ListSipRules

source§

impl RuntimePlugin for ListSupportedPhoneNumberCountries

source§

impl RuntimePlugin for ListTagsForResource

source§

impl RuntimePlugin for ListUsers

source§

impl RuntimePlugin for ListVoiceConnectorGroups

source§

impl RuntimePlugin for ListVoiceConnectorTerminationCredentials

source§

impl RuntimePlugin for ListVoiceConnectors

source§

impl RuntimePlugin for LogoutUser

source§

impl RuntimePlugin for PutAppInstanceRetentionSettings

source§

impl RuntimePlugin for PutAppInstanceStreamingConfigurations

source§

impl RuntimePlugin for PutEventsConfiguration

source§

impl RuntimePlugin for PutRetentionSettings

source§

impl RuntimePlugin for PutSipMediaApplicationLoggingConfiguration

source§

impl RuntimePlugin for PutVoiceConnectorEmergencyCallingConfiguration

source§

impl RuntimePlugin for PutVoiceConnectorLoggingConfiguration

source§

impl RuntimePlugin for PutVoiceConnectorOrigination

source§

impl RuntimePlugin for PutVoiceConnectorProxy

source§

impl RuntimePlugin for PutVoiceConnectorStreamingConfiguration

source§

impl RuntimePlugin for PutVoiceConnectorTermination

source§

impl RuntimePlugin for PutVoiceConnectorTerminationCredentials

source§

impl RuntimePlugin for RedactChannelMessage

source§

impl RuntimePlugin for RedactConversationMessage

source§

impl RuntimePlugin for RedactRoomMessage

source§

impl RuntimePlugin for RegenerateSecurityToken

source§

impl RuntimePlugin for ResetPersonalPIN

source§

impl RuntimePlugin for RestorePhoneNumber

source§

impl RuntimePlugin for SearchAvailablePhoneNumbers

source§

impl RuntimePlugin for SendChannelMessage

source§

impl RuntimePlugin for StartMeetingTranscription

source§

impl RuntimePlugin for StopMeetingTranscription

source§

impl RuntimePlugin for TagAttendee

source§

impl RuntimePlugin for TagMeeting

source§

impl RuntimePlugin for TagResource

source§

impl RuntimePlugin for UntagAttendee

source§

impl RuntimePlugin for UntagMeeting

source§

impl RuntimePlugin for UntagResource

source§

impl RuntimePlugin for UpdateAccount

source§

impl RuntimePlugin for UpdateAccountSettings

source§

impl RuntimePlugin for UpdateAppInstance

source§

impl RuntimePlugin for UpdateAppInstanceUser

source§

impl RuntimePlugin for UpdateBot

source§

impl RuntimePlugin for UpdateChannel

source§

impl RuntimePlugin for UpdateChannelMessage

source§

impl RuntimePlugin for UpdateChannelReadMarker

source§

impl RuntimePlugin for UpdateGlobalSettings

source§

impl RuntimePlugin for UpdatePhoneNumber

source§

impl RuntimePlugin for UpdatePhoneNumberSettings

source§

impl RuntimePlugin for UpdateProxySession

source§

impl RuntimePlugin for UpdateRoom

source§

impl RuntimePlugin for UpdateRoomMembership

source§

impl RuntimePlugin for UpdateSipMediaApplication

source§

impl RuntimePlugin for UpdateSipMediaApplicationCall

source§

impl RuntimePlugin for UpdateSipRule

source§

impl RuntimePlugin for UpdateUser

source§

impl RuntimePlugin for UpdateUserSettings

source§

impl RuntimePlugin for UpdateVoiceConnector

source§

impl RuntimePlugin for UpdateVoiceConnectorGroup

source§

impl RuntimePlugin for ValidateE911Address

source§

impl RuntimePlugin for StaticRuntimePlugin

source§

impl RuntimePlugin for SharedRuntimePlugin