id
stringlengths
22
133
text
stringlengths
40
40.2k
arch
stringclasses
1 value
syntax
stringclasses
1 value
kind
stringclasses
4 values
repo
stringclasses
27 values
path
stringlengths
5
116
license
stringclasses
6 values
commit
stringlengths
40
40
source_host
stringclasses
1 value
category
stringclasses
16 values
source_url
stringlengths
85
196
line_start
int64
1
4.28k
line_end
int64
4
4.31k
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:7
called multiple times in the event of retries. The duration between invocation of this hook and `after_signing` is very close to the amount of time spent signing the request. **Available Information:** The [InterceptorContext::input()] and [InterceptorContext::request()] are **ALWAYS** ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:9
failure occurs earlier in the request pipeline. This method may be called multiple times in the event of retries. The duration between invocation of this hook and `after_transmit` is very close to the amount of time spent communicating with the service. Depending on the protocol, the dur...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:10
attempts (e.g. by request signers or other interceptors). **Error Behavior:** If errors are raised by this hook, execution will jump to `modify_before_attempt_completion` with the raised error as the [InterceptorContext::output_or_error()]. " ); interceptor_trait_fn!( m...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:11
interceptor_trait_fn!( read_before_deserialization, BeforeDeserialization, " A hook called before the transport response message is unmarshalled **When:** This will **ALWAYS** be called once per attempt, except when a failure occurs earlier in the request pipeline. This ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:12
**Available Information:** The [InterceptorContext::input()], [InterceptorContext::request()], [InterceptorContext::response()] and [InterceptorContext::output_or_error()] are **ALWAYS** available. In the event of retries, the `InterceptorContext` will not include changes made in...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:13
" ); interceptor_trait_fn!( read_after_attempt, AfterDeserialization, " A hook called when an attempt is completed. **When:** This will **ALWAYS** be called once per attempt, as long as `before_attempt` has been executed. **Available Information:** The ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:14
**When:** This will **ALWAYS** be called once per execution. **Available Information:** The [InterceptorContext::input()] and [InterceptorContext::output_or_error()] are **ALWAYS** available. The [InterceptorContext::request()] and [InterceptorContext::response()] are available if the ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:15
used and earlier ones will be logged and dropped. " ); } pub type SharedInterceptor = Arc<dyn Interceptor + Send + Sync>; #[derive(Debug, Clone, Default)] pub struct Interceptors { client_interceptors: Vec<SharedInterceptor>, operation_interceptors: Vec<SharedInterceptor>, } macro_rules! intercep...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:16
if let Err(new_error) = interceptor.$inner_name($context, cfg) { if let Err(last_error) = result { tracing::debug!("{}", DisplayErrorContext(&*last_error)); } result = Err(new_error); } } result.m...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:17
); interceptor_impl_fn!( context, operation_read_before_execution, read_before_execution, BeforeSerialization ); interceptor_impl_fn!( mut context, modify_before_serialization, BeforeSerialization ); interceptor_impl_fn!(context, read_before_se...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
3e62701b23a7f6ec9f37a94eb885390aa65bd0aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3e62701b23a7f6ec9f37a94eb885390aa65bd0aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
641
678
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ pub mod context; pub mod error; use crate::config_bag::ConfigBag; use aws_smithy_types::error::display::DisplayErrorContext; pub use context::InterceptorContext; pub use error::{BoxError, InterceptorErr...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:2
/// - An execution is one end-to-end invocation against an SDK client. /// - An attempt is an attempt at performing an execution. By default executions are retried multiple /// times based on the client ’s retry strategy. /// - A hook is a single method on the interceptor, allowing injection of code into a specific p...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:3
failure occurs earlier in the request pipeline. **Available Information:** The [InterceptorContext::input()] is **ALWAYS** available. This request may have been modified by earlier `modify_before_serialization` hooks, and may be modified further by later hooks. Other information **WILL ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:4
read_after_serialization, " /// A hook called after the input message is marshalled into /// a transport message. /// /// **When:** This will **ALWAYS** be called once per execution, except when a /// failure occurs earlier in the request pipeline. The duration //...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:5
interceptor_trait_fn!( read_before_attempt, " A hook called before each attempt at sending the transmission request message to the service. **When:** This will **ALWAYS** be called once per attempt, except when a failure occurs earlier in the request pipeline. This metho...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:6
The `http::Request` may have been modified by earlier `modify_before_signing` hooks, and may be modified further by later hooks. Other information **WILL NOT** be available. In the event of retries, the `InterceptorContext` will not include changes made in previous attempts (e.g....
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:7
interceptor_trait_fn!( read_after_signing, " A hook called after the transport request message is signed. **When:** This will **ALWAYS** be called once per attempt, except when a failure occurs earlier in the request pipeline. This method may be called multiple times in ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:8
/// In the event of retries, the `InterceptorContext` will not include /// changes made in previous attempts (e.g. by request signers or other interceptors). **Error Behavior:** If errors are raised by this hook, execution will jump to `modify_before_attempt_completion` with the...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:9
); interceptor_trait_fn!( read_after_transmit, " A hook called after the transport request message is sent to the service and a transport response message is received. **When:** This will **ALWAYS** be called once per attempt, except when a failure occurs earlier in...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:10
**Available Information:** The [InterceptorContext::input()], [InterceptorContext::request()] and [InterceptorContext::response()] are **ALWAYS** available. The transmit_response may have been modified by earlier `modify_before_deserialization` hooks, and may be modified further by ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:11
**Error Behavior:** If errors are raised by this hook, execution will jump to `modify_before_attempt_completion` with the raised error as the [InterceptorContext::output_or_error()]. " ); interceptor_trait_fn!( read_after_deserialization, " A hook called after th...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:12
failure occurs before `before_attempt`. This method may be called multiple times in the event of retries. **Available Information:** The [InterceptorContext::input()], [InterceptorContext::request()], [InterceptorContext::response()] and [InterceptorContext::output_or_error()] a...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:13
will be used and earlier ones will be logged and dropped. If the retry strategy determines that the execution is retryable, execution will then jump to `before_attempt`. Otherwise, execution will jump to `modify_before_attempt_completion` with the raised error as the [InterceptorContext:...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:14
between invocation of this hook and `before_execution` is very close to the full duration of the execution. **Available Information:** The [InterceptorContext::input()] and [InterceptorContext::output_or_error()] are **ALWAYS** available. The [InterceptorContext::request()] and ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:15
($outer_name:ident, $inner_name:ident ($context:ident : $context_ty:ty)) => { pub fn $outer_name( &self, $context: $context_ty, cfg: &mut ConfigBag, ) -> Result<(), InterceptorError> { let mut result: Result<(), BoxError> = Ok(()); for intercep...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:16
self } interceptor_impl_fn!(context, client_read_before_execution, read_before_execution); interceptor_impl_fn!( context, operation_read_before_execution, read_before_execution ); interceptor_impl_fn!(mut context, modify_before_serialization); interceptor_impl_fn!(contex...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
b6715a1ea57fffaae7e3099a05856c60c78bc8aa
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b6715a1ea57fffaae7e3099a05856c60c78bc8aa/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
601
628
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ pub mod context; pub mod error; use crate::config_bag::ConfigBag; use aws_smithy_types::error::display::DisplayErrorContext; pub use context::InterceptorContext; pub use error::{BoxError, InterceptorErr...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:2
/// An interceptor allows injecting code into the SDK ’s request execution pipeline. /// /// ## Terminology: /// - An execution is one end-to-end invocation against an SDK client. /// - An attempt is an attempt at performing an execution. By default executions are retried multiple /// times based on the client ’s ret...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:3
This method has the ability to modify and return a new request message of the same type. **When:** This will **ALWAYS** be called once per execution, except when a failure occurs earlier in the request pipeline. **Available Information:** The [InterceptorContext::input()] is **...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:4
" ); interceptor_trait_fn!( read_after_serialization, " /// A hook called after the input message is marshalled into /// a transport message. /// /// **When:** This will **ALWAYS** be called once per execution, except when a /// failure occurs earlier in ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:5
hook MUST be the same type of request message passed into this hook If not, an error will immediately be raised. " ); interceptor_trait_fn!( read_before_attempt, " A hook called before each attempt at sending the transmission request message to the service. ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:6
called multiple times in the event of retries. **Available Information:** The [InterceptorContext::input()] and [InterceptorContext::request()] are **ALWAYS** available. The `http::Request` may have been modified by earlier `modify_before_signing` hooks, and may be modified further by l...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:7
hook, execution will jump to `modify_before_attempt_completion` with the raised error as the [InterceptorContext::output_or_error()]. " ); interceptor_trait_fn!( read_after_signing, " A hook called after the transport request message is signed. **When:** This wi...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:8
/// and [InterceptorContext::request()] are **ALWAYS** available. /// The `http::Request` may have been modified by earlier /// `modify_before_transmit` hooks, and may be modified further by later /// hooks. Other information **WILL NOT** be available. /// In the event of retries, the `I...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:9
**Error Behavior:** If errors are raised by this hook, execution will jump to `modify_before_attempt_completion` with the raised error as the [InterceptorContext::output_or_error()]. " ); interceptor_trait_fn!( read_after_transmit, " A hook called after the trans...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:10
**When:** This will **ALWAYS** be called once per attempt, except when a failure occurs earlier in the request pipeline. This method may be called multiple times in the event of retries. **Available Information:** The [InterceptorContext::input()], [InterceptorContext::request()] and ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:11
Other information **WILL NOT** be available. In the event of retries, the `InterceptorContext` will not include changes made in previous attempts (e.g. by request signers or other interceptors). **Error Behavior:** If errors are raised by this hook, execution will jump to `modify_before...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:12
ability to modify and return a new output message or error matching the currently-executing operation. **When:** This will **ALWAYS** be called once per attempt, except when a failure occurs before `before_attempt`. This method may be called multiple times in the event of retries. ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:13
**Error Behavior:** Errors raised by this hook will be stored until all interceptors have had their `after_attempt` invoked. If multiple `after_execution` methods raise errors, the latest will be used and earlier ones will be logged and dropped. If the retry strategy determines that the ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:14
" A hook called when an execution is completed. **When:** This will **ALWAYS** be called once per execution. The duration between invocation of this hook and `before_execution` is very close to the full duration of the execution. **Available Information:** The [InterceptorConte...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:15
#[derive(Debug)] pub struct Interceptors<TxReq, TxRes> { inner: Arc<Mutex<Inner<TxReq, TxRes>>>, } // The compiler isn't smart enough to realize that TxReq and TxRes don't need to implement `Clone` impl<TxReq, TxRes> Clone for Interceptors<TxReq, TxRes> { fn clone(&self) -> Self { Self { in...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:16
interceptor_impl_fn!( $outer_name, $inner_name(context: &mut InterceptorContext<TxReq, TxRes>) ); }; ($outer_name:ident, $inner_name:ident ($context:ident : $context_ty:ty)) => { pub fn $outer_name( &self, $context: $context_ty, cfg: &m...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:17
.iter() .cloned(), ); interceptors } pub fn register_client_interceptor( &self, interceptor: SharedInterceptor<TxReq, TxRes>, ) -> &Self { self.inner .lock() .unwrap() .client_interceptors .push(intercep...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
641
695
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:18
interceptor_impl_fn!(context, read_before_attempt); interceptor_impl_fn!(mut context, modify_before_signing); interceptor_impl_fn!(context, read_before_signing); interceptor_impl_fn!(context, read_after_signing); interceptor_impl_fn!(mut context, modify_before_transmit); interceptor_impl_fn!(context...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
5755a244c08bfb3f0f3e1a0fe376e3286eb40740
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5755a244c08bfb3f0f3e1a0fe376e3286eb40740/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
681
695
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ pub mod context; pub mod error; use crate::config_bag::ConfigBag; pub use context::InterceptorContext; pub use error::InterceptorError; use std::sync::{Arc, Mutex}; macro_rules! interceptor_trait_fn { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:2
/// An interceptor allows injecting code into the SDK ’s request execution pipeline. /// /// ## Terminology: /// - An execution is one end-to-end invocation against an SDK client. /// - An attempt is an attempt at performing an execution. By default executions are retried multiple /// times based on the client ’s ret...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:3
request message of the same type. **When:** This will **ALWAYS** be called once per execution, except when a failure occurs earlier in the request pipeline. **Available Information:** The [InterceptorContext::input()] is **ALWAYS** available. This request may have been modified by earl...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:4
); interceptor_trait_fn!( read_after_serialization, " /// A hook called after the input message is marshalled into /// a transport message. /// /// **When:** This will **ALWAYS** be called once per execution, except when a /// failure occurs earlier in the re...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:5
If not, an error will immediately be raised. " ); interceptor_trait_fn!( read_before_attempt, " A hook called before each attempt at sending the transmission request message to the service. **When:** This will **ALWAYS** be called once per attempt, except when a...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:6
**Available Information:** The [InterceptorContext::input()] and [InterceptorContext::request()] are **ALWAYS** available. The `http::Request` may have been modified by earlier `modify_before_signing` hooks, and may be modified further by later hooks. Other information **WILL NOT** be av...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:7
the raised error as the [InterceptorContext::output_or_error()]. " ); interceptor_trait_fn!( read_after_signing, " A hook called after the transport request message is signed. **When:** This will **ALWAYS** be called once per attempt, except when a failure occur...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:8
/// The `http::Request` may have been modified by earlier /// `modify_before_transmit` hooks, and may be modified further by later /// hooks. Other information **WILL NOT** be available. /// In the event of retries, the `InterceptorContext` will not include /// changes made in previous a...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:9
hook, execution will jump to `modify_before_attempt_completion` with the raised error as the [InterceptorContext::output_or_error()]. " ); interceptor_trait_fn!( read_after_transmit, " A hook called after the transport request message is sent to the service and a...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:10
failure occurs earlier in the request pipeline. This method may be called multiple times in the event of retries. **Available Information:** The [InterceptorContext::input()], [InterceptorContext::request()] and [InterceptorContext::response()] are **ALWAYS** available. The tran...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:11
the `InterceptorContext` will not include changes made in previous attempts (e.g. by request signers or other interceptors). **Error Behavior:** If errors are raised by this hook, execution will jump to `modify_before_attempt_completion` with the raised error as the [InterceptorContext:...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:12
matching the currently-executing operation. **When:** This will **ALWAYS** be called once per attempt, except when a failure occurs before `before_attempt`. This method may be called multiple times in the event of retries. **Available Information:** The [InterceptorContext::input()], ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:13
**Error Behavior:** Errors raised by this hook will be stored until all interceptors have had their `after_attempt` invoked. If multiple `after_execution` methods raise errors, the latest will be used and earlier ones will be logged and dropped. If the retry strategy determines that the ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:14
A hook called when an execution is completed. **When:** This will **ALWAYS** be called once per execution. The duration between invocation of this hook and `before_execution` is very close to the full duration of the execution. **Available Information:** The [InterceptorContext::input(...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:15
#[derive(Debug)] pub struct Interceptors<TxReq, TxRes> { inner: Arc<Mutex<Inner<TxReq, TxRes>>>, } // The compiler isn't smart enough to realize that TxReq and TxRes don't need to implement `Clone` impl<TxReq, TxRes> Clone for Interceptors<TxReq, TxRes> { fn clone(&self) -> Self { Self { in...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:16
let client_interceptors = self.inner.lock().unwrap().client_interceptors.clone(); for interceptor in client_interceptors { interceptor.$inner_name(context, cfg)?; } let operation_interceptors = self.inner.lock().unwrap().operation_interceptors.clone(); for...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:17
) -> &Self { self.inner .lock() .unwrap() .client_interceptors .push(interceptor); self } pub fn register_operation_interceptor( &self, interceptor: SharedInterceptor<TxReq, TxRes>, ) -> &Self { self.inner ....
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
641
686
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ pub mod context; pub mod error; use crate::config_bag::ConfigBag; pub use context::InterceptorContext; pub use error::InterceptorError; macro_rules! interceptor_trait_fn { ($name:ident, $docs:tt) =...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:2
" A hook called at the start of an execution, before the SDK does anything else. **When:** This will **ALWAYS** be called once per execution. The duration between invocation of this hook and `after_execution` is very close to full duration of the execution. **Available ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:3
error as the [InterceptorContext::output_or_error()]. **Return Constraints:** The input message returned by this hook MUST be the same type of input message passed into this hook. If not, an error will immediately be raised. " ); interceptor_trait_fn!( read_before_seria...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:4
/// **Available Information:** The [InterceptorContext::input()] /// and [InterceptorContext::request()] are **ALWAYS** available. /// Other information **WILL NOT** be available. /// /// **Error Behavior:** If errors are raised by this hook, /// execution will jump to `modify_be...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:5
**Available Information:** The [InterceptorContext::input()] and [InterceptorContext::request()] are **ALWAYS** available. Other information **WILL NOT** be available. In the event of retries, the `InterceptorContext` will not include changes made in previous attempts (e.g. by request si...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:6
**Return Constraints:** The transport request message returned by this hook MUST be the same type of request message passed into this hook If not, an error will immediately be raised. " ); interceptor_trait_fn!( read_before_signing, " A hook called before the tr...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:7
the amount of time spent signing the request. **Available Information:** The [InterceptorContext::input()] and [InterceptorContext::request()] are **ALWAYS** available. Other information **WILL NOT** be available. In the event of retries, the `InterceptorContext` will not include change...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:8
If not, an error will immediately be raised. " ); interceptor_trait_fn!( read_before_transmit, " A hook called before the transport request message is sent to the service. **When:** This will **ALWAYS** be called once per attempt, except when a failure o...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:9
called multiple times in the event of retries. The duration between invocation of this hook and `before_transmit` is very close to the amount of time spent communicating with the service. Depending on the protocol, the duration may not include the time spent reading the response data. ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:10
hook, execution will jump to `modify_before_attempt_completion` with the raised error as the [InterceptorContext::output_or_error()]. **Return Constraints:** The transport response message returned by this hook MUST be the same type of response message passed into this hook. If ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:11
**When:** This will **ALWAYS** be called once per attempt, except when a failure occurs earlier in the request pipeline. The duration between invocation of this hook and `before_deserialization` is very close to the amount of time spent unmarshalling the service response. Depending on th...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:12
**Error Behavior:** If errors are raised by this hook, execution will jump to `after_attempt` with the raised error as the [InterceptorContext::output_or_error()]. **Return Constraints:** Any output message returned by this hook MUST match the operation being invoked. Any error type can...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:13
" A hook called when an execution is completed. This method has the ability to modify and return a new output message or error matching the currently - executing operation. **When:** This will **ALWAYS** be called once per execution. **Available Information:** The [Inte...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:14
until all interceptors have had their `after_execution` invoked. The error will then be treated as the [InterceptorContext::output_or_error()] to the customer. If multiple `after_execution` methods raise errors , the latest will be used and earlier ones will be logged and dropped. ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:15
} }; (mut context, $outer_name:ident, $inner_name:ident) => { pub fn $outer_name( &mut self, context: &mut InterceptorContext<TxReq, TxRes>, cfg: &mut ConfigBag, ) -> Result<(), InterceptorError> { for interceptor in self.client_interceptors.iter_m...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors.rs:16
operation_read_before_execution, read_before_execution ); interceptor_impl_fn!(mut context, modify_before_serialization); interceptor_impl_fn!(context, read_before_serialization); interceptor_impl_fn!(context, read_after_serialization); interceptor_impl_fn!(mut context, modify_before_retry_l...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors.rs
Apache-2.0
859d18e93f161db478e19f9db7e21ba30092426e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/859d18e93f161db478e19f9db7e21ba30092426e/sdk/aws-smithy-runtime-api/src/client/interceptors.rs
601
622
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Interceptor context. //! //! Interceptors have access to varying pieces of context during the course of an operation. //! //! An operation is composed of multiple phases. The initial phase is "before...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:2
new_type_box!($name, TypeErasedBox, $doc, Send, Sync, fmt::Debug,); }; ($name:ident, $underlying:ident, $doc:literal, $($additional_bound:path,)*) => { #[doc = $doc] #[derive(Debug)] pub struct $name($underlying); impl $name { #[doc = concat!("Creates a new `", strin...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:3
Error, TypeErasedError, "Type-erased operation error.", std::error::Error, ); impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Display::fmt(&self.0, f) } } impl std::error::Error for Error { fn source(&self) -> Option<&(dyn std::error::Error ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:4
/// serialized at that point. But once it gets into the "before transmit" phase, the `request` will be set. #[derive(Debug)] pub struct InterceptorContext<I = Input, O = Output, E = Error> { pub(crate) input: Option<I>, pub(crate) output_or_error: Option<Result<O, OrchestratorError<E>>>, pub(crate) request:...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:5
} /// Takes ownership of the input. /// /// Note: This method is intended for internal use only. pub fn take_input(&mut self) -> Option<I> { self.input.take() } /// Set the request for the operation being invoked. /// /// Note: This method is intended for internal use only. ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:6
/// /// Note: This method is intended for internal use only. pub fn set_response(&mut self, response: Response) { self.response = Some(response); } /// Returns the response. /// /// Note: This method is intended for internal use only. pub fn response(&self) -> Option<&Response> { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:7
/// Grants ownership of the deserialized output/error. /// /// Note: This method is intended for internal use only. pub fn take_output_or_error(&mut self) -> Option<Result<O, OrchestratorError<E>>> { self.output_or_error.take() } /// Return `true` if this context's `output_or_error` is an e...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:8
self.input.is_none(), "input must be taken before calling enter_before_transmit_phase" ); debug_assert!( self.request.is_some(), "request must be set before calling enter_before_transmit_phase" ); self.request_checkpoint = self.request().expect("checke...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:9
self.phase = Phase::BeforeDeserialization; } /// Advance to the Deserialization phase. /// /// Note: This method is intended for internal use only. pub fn enter_deserialization_phase(&mut self) { debug!("entering \'deserialization\' phase"); debug_assert!( self.phase.is_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:10
} } /// Returns false if rewinding isn't possible /// /// Note: This method is intended for internal use only. pub fn rewind(&mut self, _cfg: &mut ConfigBag) -> RewindResult { // If request_checkpoint was never set, but we've already made one attempt, // then this is not a retryable...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:11
self, ) -> ( Option<I>, Option<Result<O, OrchestratorError<E>>>, Option<Request>, Option<Response>, ) { ( self.input, self.output_or_error, self.request, self.response, ) } /// Convert this context into the ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:12
/// by the context will be replaced by the given error. /// /// Note: This method is intended for internal use only. pub fn fail(&mut self, error: OrchestratorError<E>) { if !self.is_failed() { trace!( "orchestrator is transitioning to the 'failure' phase from the '{:?}' ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:13
RewindResult::Occurred => write!(f, "The request was rewound successfully."), } } } #[cfg(all(test, feature = "test-util", feature = "http-02x"))] mod tests { use super::*; use aws_smithy_types::body::SdkBody; use http_02x::header::{AUTHORIZATION, CONTENT_LENGTH}; use http_02x::{HeaderValue...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:14
context.response(); context.response_mut(); context.enter_deserialization_phase(); context.response(); context.response_mut(); context.set_output_or_error(Ok(output)); context.enter_after_deserialization_phase(); context.response(); context.response_mut(...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:15
assert_eq!(context.rewind(&mut cfg), RewindResult::Unnecessary); // Modify the test header post-checkpoint to simulate modifying the request for signing or a mutating interceptor context.request_mut().unwrap().headers_mut().remove("test"); context.request_mut().unwrap().headers_mut().insert( ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:16
.try_into() .unwrap(), ); context.enter_before_deserialization_phase(); context.enter_deserialization_phase(); context.set_output_or_error(Ok(output)); context.enter_after_deserialization_phase(); let output = context.output_or_error.unwrap().expect("su...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
5e17b3723799bff475dc95cdcca40c9d54602f18
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5e17b3723799bff475dc95cdcca40c9d54602f18/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
601
635
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Interceptor context. //! //! Interceptors have access to varying pieces of context during the course of an operation. //! //! An operation is composed of multiple phases. The initial phase is "before...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
b30f288c9f7dfdabd7bd6661ddeacf9f26a24871
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b30f288c9f7dfdabd7bd6661ddeacf9f26a24871/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:10
} } /// Returns false if rewinding isn't possible /// /// Note: This method is intended for internal use only. pub fn rewind(&mut self, _cfg: &mut ConfigBag) -> RewindResult { // If request_checkpoint was never set, but we've already made one attempt, // then this is not a retryable...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
b30f288c9f7dfdabd7bd6661ddeacf9f26a24871
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b30f288c9f7dfdabd7bd6661ddeacf9f26a24871/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:11
self, ) -> ( Option<I>, Option<Result<O, OrchestratorError<E>>>, Option<Request>, Option<Response>, ) { ( self.input, self.output_or_error, self.request, self.response, ) } /// Convert this context into the ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
b30f288c9f7dfdabd7bd6661ddeacf9f26a24871
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b30f288c9f7dfdabd7bd6661ddeacf9f26a24871/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:12
/// Note: This method is intended for internal use only. pub fn fail(&mut self, error: OrchestratorError<E>) { if !self.is_failed() { trace!( "orchestrator is transitioning to the 'failure' phase from the '{:?}' phase", self.phase ); } ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
b30f288c9f7dfdabd7bd6661ddeacf9f26a24871
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b30f288c9f7dfdabd7bd6661ddeacf9f26a24871/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:13
} } #[cfg(all(test, feature = "test-util", feature = "http-02x"))] mod tests { use super::*; use aws_smithy_types::body::SdkBody; use http_02x::header::{AUTHORIZATION, CONTENT_LENGTH}; use http_02x::{HeaderValue, Uri}; #[test] fn test_success_transitions() { let input = Input::doesnt_m...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
b30f288c9f7dfdabd7bd6661ddeacf9f26a24871
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b30f288c9f7dfdabd7bd6661ddeacf9f26a24871/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:14
context.enter_deserialization_phase(); context.response(); context.response_mut(); context.set_output_or_error(Ok(output)); context.enter_after_deserialization_phase(); context.response(); context.response_mut(); let _ = context.output_or_error(); let _ =...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
b30f288c9f7dfdabd7bd6661ddeacf9f26a24871
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b30f288c9f7dfdabd7bd6661ddeacf9f26a24871/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs:15
context.request_mut().unwrap().headers_mut().remove("test"); context.request_mut().unwrap().headers_mut().insert( "test", HeaderValue::from_static("request-modified-after-signing"), ); context.enter_transmit_phase(); let request = context.take_request().unwrap();...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
Apache-2.0
b30f288c9f7dfdabd7bd6661ddeacf9f26a24871
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b30f288c9f7dfdabd7bd6661ddeacf9f26a24871/sdk/aws-smithy-runtime-api/src/client/interceptors/context.rs
561
620