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/src/client/orchestrator.rs:14
HttpConnectorFuture::ready(Ok(::http::Response::builder() .status(200) .body(SdkBody::empty()) .expect("OK response is valid") .try_into() .unwrap())) } } #[derive(Debug)] struct TestOperationRuntimePlugin { bui...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
Some(layer.freeze()) } fn runtime_components( &self, _: &RuntimeComponentsBuilder, ) -> Cow<'_, RuntimeComponentsBuilder> { Cow::Borrowed(&self.builder) } } macro_rules! interceptor_error_handling_test { (read_before_execution, $ctx:t...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
fn $interceptor( &self, _ctx: $ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("FailingInterceptorB called!"); Err("FailingInterceptorB".into()) ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
#[derive(Debug)] struct FailingInterceptorsOperationRuntimePlugin(RuntimeComponentsBuilder); impl FailingInterceptorsOperationRuntimePlugin { fn new() -> Self { Self( RuntimeComponentsBuilder::new("test") .wi...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:18
#[traced_test] async fn test_read_before_execution_error_handling() { let expected = r#"ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ReadBeforeExecution, interceptor_name: Some("FailingInterceptorC"), source: Some("FailingInterceptorC") } })"#.to_string(); interceptor_e...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:19
); } #[tokio::test] #[traced_test] async fn test_modify_before_retry_loop_error_handling() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeRetryLoop, interceptor_name: Some("FailingInterceptorC")"#.to...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
721
780
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:20
interceptor_error_handling_test!( read_before_signing, &BeforeTransmitInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_after_signing_error_handling() { let expected = r#"DispatchFailure(DispatchFailure { source...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
761
820
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:21
#[tokio::test] #[traced_test] async fn test_read_after_transmit_error_handling() { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterTransmit, interceptor_name: Some("FailingInterceptorC")"#; interceptor_error_handling_test!( read_after_transmi...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
801
860
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_attempt_completion_error_handling() { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, interceptor_name: Some("FailingInterceptorC")"#; intercep...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterExecution, interceptor_name: Some("FailingInterceptorC")"#; interceptor_error_handling_test!( read_after_execution, &FinalizerInterceptorContextRef<'_>, expected ); } ma...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
940
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:24
_runtime_components: &RuntimeComponents, _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("DestinationInterceptor called!"); Err("DestinationInterceptor".into()) } } #[derive(Debug)] ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
921
980
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:25
assert!(logs_contain("OriginInterceptor called!")); assert!(logs_contain("DestinationInterceptor called!")); }; } #[tokio::test] #[traced_test] async fn test_read_before_execution_error_causes_jump_to_modify_before_completion() { let expected = r#"ConstructionFailure(Constru...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
961
1,020
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:26
expected ); } #[tokio::test] #[traced_test] async fn test_read_after_serialization_error_causes_jump_to_modify_before_completion() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeCompletion, i...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,001
1,060
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:27
); } #[tokio::test] #[traced_test] async fn test_modify_before_signing_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCompletion, interc...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,041
1,100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:28
} #[tokio::test] #[traced_test] async fn test_modify_before_transmit_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCompletion, interceptor_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,081
1,140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:29
#[tokio::test] #[traced_test] async fn test_modify_before_deserialization_error_causes_jump_to_modify_before_attempt_completion( ) { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, interceptor_name: Some("DestinationInterceptor")"#; ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,121
1,180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:30
); } #[tokio::test] #[traced_test] async fn test_modify_before_attempt_completion_error_causes_jump_to_read_after_attempt() { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, interceptor_name: Some("DestinationInterceptor")"#; intercepto...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,161
1,220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:31
"test", Input::doesnt_matter(), &runtime_plugins(), StopPoint::None, ) .await .expect("success"); assert!(context.response().is_some()); // StopPoint::BeforeTransmit will exit right before sending the request, so there should be no response ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,201
1,260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:32
fn modify_before_retry_loop( &self, _context: &mut BeforeTransmitInterceptorContextMut<'_>, _rc: &RuntimeComponents, _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { self.inner .modify_before_retry_loop_call...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,241
1,300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:33
builder: RuntimeComponentsBuilder, } impl RuntimePlugin for TestInterceptorRuntimePlugin { fn runtime_components( &self, _: &RuntimeComponentsBuilder, ) -> Cow<'_, RuntimeComponentsBuilder> { Cow::Borrowed(&self.builder) ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,281
1,331
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:34
.load(Ordering::Relaxed)); assert!(interceptor .inner .modify_before_completion_called .load(Ordering::Relaxed)); assert!(interceptor .inner .read_after_execution_called .load(Ordering::Relaxed)); } }
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
02aa74d2aac3b5cc8dfdd9437bd29983ca385851
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/02aa74d2aac3b5cc8dfdd9437bd29983ca385851/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,321
1,331
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ // TODO(msrvUpgrade): This can be removed once we upgrade the MSRV to Rust 1.69 #![allow(unknown_lints)] use self::auth::orchestrate_auth; use crate::client::interceptors::Interceptors; use crate::clien...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
run_interceptors!(halt_on_err: { read_after_signing(ctx, runtime_components, cfg); modify_before_transmit(ctx, runtime_components, cfg); read_before_transmit(ctx, runtime_components, cfg); }); // Return early if a stop point is set for before transmit if let StopPoint::BeforeTransmi...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
}); ctx.enter_deserialization_phase(); let output_or_error = async { let response = ctx.response_mut().expect("set during transmit"); let response_deserializer = cfg .load::<SharedResponseDeserializer>() .expect("a request deserializer must be in the config bag"); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
run_interceptors!(continue_on_err: { modify_before_attempt_completion(ctx, runtime_components, cfg); read_after_attempt(ctx, runtime_components, cfg); }); } #[instrument(skip_all, level = "debug")] async fn finally_op( ctx: &mut InterceptorContext, cfg: &mut ConfigBag, runtime_component...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
AfterDeserializationInterceptorContextRef, BeforeDeserializationInterceptorContextMut, BeforeDeserializationInterceptorContextRef, BeforeSerializationInterceptorContextMut, BeforeSerializationInterceptorContextRef, BeforeTransmitInterceptorContextMut, BeforeTransmitInterceptorContextRef, Finaliz...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
impl HttpConnector for OkConnector { fn call(&self, _request: HttpRequest) -> HttpConnectorFuture { HttpConnectorFuture::ready(Ok(::http::Response::builder() .status(200) .body(SdkBody::empty()) .expect("OK response is valid") .try_into...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
layer.store_put(SharedRequestSerializer::new(new_request_serializer())); layer.store_put(SharedResponseDeserializer::new(new_response_deserializer())); layer.store_put(TimeoutConfig::builder().build()); Some(layer.freeze()) } fn runtime_components( &self,...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
impl Intercept for FailingInterceptorB { fn name(&self) -> &'static str { "FailingInterceptorB" } fn $interceptor( &self, _ctx: $ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), BoxErro...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
} } #[derive(Debug)] struct FailingInterceptorsOperationRuntimePlugin(RuntimeComponentsBuilder); impl FailingInterceptorsOperationRuntimePlugin { fn new() -> Self { Self( RuntimeComponentsBuilder::new("test") ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:18
} #[tokio::test] #[traced_test] async fn test_read_before_execution_error_handling() { let expected = r#"ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ReadBeforeExecution, interceptor_name: Some("FailingInterceptorC"), source: Some("FailingInterceptorC") } })"#.to_strin...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:19
read_after_serialization, &BeforeTransmitInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_retry_loop_error_handling() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
721
780
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:20
#[traced_test] async fn test_read_before_signing_error_handling() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeSigning, interceptor_name: Some("FailingInterceptorC")"#; interceptor_error_handling_test!( ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
761
820
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:21
); } #[tokio::test] #[traced_test] async fn test_read_after_transmit_error_handling() { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterTransmit, interceptor_name: Some("FailingInterceptorC")"#; interceptor_error_handling_test!( read...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
801
860
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
interceptor_error_handling_test!( read_after_deserialization, &AfterDeserializationInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_attempt_completion_error_handling() { let expected = r#"ResponseError...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
#[tokio::test] #[traced_test] async fn test_read_after_execution_error_handling() { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterExecution, interceptor_name: Some("FailingInterceptorC")"#; interceptor_error_handling_test!( read_after_execu...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
940
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:24
fn $destination_interceptor( &self, _ctx: $destination_ctx, _runtime_components: &RuntimeComponents, _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("DestinationInterceptor called!"); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
921
980
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:25
$expected ); assert!(logs_contain("OriginInterceptor called!")); assert!(logs_contain("DestinationInterceptor called!")); }; } #[tokio::test] #[traced_test] async fn test_read_before_execution_error_causes_jump_to_modify_before_completion() { let exp...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
961
1,020
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:26
&BeforeSerializationInterceptorContextRef<'_>, modify_before_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_after_serialization_error_causes_jump_to_modify_before_completion() { let ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,001
1,060
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:27
modify_before_attempt_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_signing_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#"DispatchFailure(DispatchFailure ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,041
1,100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:28
&mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_transmit_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None),...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,081
1,140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:29
expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_deserialization_error_causes_jump_to_modify_before_attempt_completion( ) { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, interceptor_name: Some("...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,121
1,180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:30
modify_before_attempt_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_attempt_completion_error_causes_jump_to_read_after_attempt() { let expected = r#"ResponseError(ResponseError { sourc...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,161
1,220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:31
// StopPoint::None should result in a response getting set since orchestration doesn't stop let context = invoke_with_stop_point( "test", "test", Input::doesnt_matter(), &runtime_plugins(), StopPoint::None, ) .await .expect("suc...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,201
1,260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:32
fn name(&self) -> &'static str { "TestInterceptor" } fn modify_before_retry_loop( &self, _context: &mut BeforeTransmitInterceptorContextMut<'_>, _rc: &RuntimeComponents, _cfg: &mut ConfigBag, ) -> Result...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,241
1,300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:33
#[derive(Debug)] struct TestInterceptorRuntimePlugin { builder: RuntimeComponentsBuilder, } impl RuntimePlugin for TestInterceptorRuntimePlugin { fn runtime_components( &self, _: &RuntimeComponentsBuilder, ) -> Cow<'_, RuntimeC...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,281
1,334
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:34
assert!(interceptor .inner .modify_before_retry_loop_called .load(Ordering::Relaxed)); assert!(interceptor .inner .modify_before_completion_called .load(Ordering::Relaxed)); assert!(interceptor .inner .read_a...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8cee30d6cf97f43dff97c6e6cf1e0c599f1b7097/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,321
1,334
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ // TODO(msrvUpgrade): This can be removed once we upgrade the MSRV to Rust 1.69 #![allow(unknown_lints)] use self::auth::orchestrate_auth; use crate::client::interceptors::Interceptors; use crate::clien...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
pub enum StopPoint { /// Don't stop orchestration early None, /// Stop the orchestrator before transmitting the request BeforeTransmit, } /// Same as [`invoke`], but allows for returning early at different points during orchestration. /// /// Orchestration will cease at the point specified by `stop_po...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
finally_op(&mut ctx, cfg, &runtime_components).await; Ok(ctx) } .maybe_timeout(operation_timeout_config) .await } .instrument(debug_span!("invoke", service = %service_name, operation = %operation_name)) .await } /// Apply configuration is responsible for apply runtime pl...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
stop_point: StopPoint, ) { // Before serialization run_interceptors!(halt_on_err: { read_before_serialization(ctx, runtime_components, cfg); modify_before_serialization(ctx, runtime_components, cfg); }); // Serialization ctx.enter_serialization_phase(); { let _span = deb...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
modify_before_retry_loop(ctx, runtime_components, cfg); }); // If we got a retry strategy from the bag, ask it what to do. // Otherwise, assume we should attempt the initial request. let should_attempt = runtime_components .retry_strategy() .should_attempt_initial_request(runtime_compon...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
cfg.interceptor_state() .store_put::<RequestAttempts>(i.into()); // Backoff time should not be included in the attempt timeout if let Some((delay, sleep)) = retry_delay.take() { debug!("delaying for {delay:?}"); sleep.await; } let attempt_timeout_confi...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
))); retry_delay = Some((delay, sleep_impl.sleep(delay))); continue; } } } } #[instrument(skip_all, level = "debug")] async fn try_attempt( ctx: &mut InterceptorContext, cfg: &mut ConfigBag, runtime_components: &RuntimeComponents, stop_point: Stop...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
ctx.enter_transmit_phase(); let response = halt_on_err!([ctx] => { let request = ctx.take_request().expect("set during serialization"); trace!(request = ?request, "transmitting request"); let http_client = halt_on_err!([ctx] => runtime_components.http_client().ok_or_else(|| Orche...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
None => read_body(response) .instrument(debug_span!("read_body")) .await .map_err(OrchestratorError::response) .and_then(|_| { let _span = debug_span!("deserialize_nonstreaming").entered(); log_response_body(response...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
read_after_execution(ctx, runtime_components, cfg); }); } #[cfg(all(test, feature = "test-util"))] mod tests { use super::*; use crate::client::auth::no_auth::{NoAuthRuntimePlugin, NO_AUTH_SCHEME_ID}; use crate::client::orchestrator::endpoints::StaticUriEndpointResolver; use crate::client::retries:...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
use std::sync::Arc; use tracing_test::traced_test; fn new_request_serializer() -> CannedRequestSerializer { CannedRequestSerializer::success(HttpRequest::empty()) } fn new_response_deserializer() -> CannedResponseDeserializer { CannedResponseDeserializer::new( Response::bui...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
} impl TestOperationRuntimePlugin { fn new() -> Self { Self { builder: RuntimeComponentsBuilder::for_tests() .with_retry_strategy(Some(SharedRetryStrategy::new(NeverRetryStrategy::new()))) .with_endpoint_resolver(Some(SharedEndpointResolve...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
(read_before_execution, $ctx:ty, $expected:expr,) => { interceptor_error_handling_test!(__private read_before_execution, $ctx, $expected,); }; ($interceptor:ident, $ctx:ty, $expected:expr) => { interceptor_error_handling_test!(__private $interceptor, $ctx, $expected, _rc: &Runtim...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
struct FailingInterceptorC; impl Intercept for FailingInterceptorC { fn name(&self) -> &'static str { "FailingInterceptorC" } fn $interceptor( &self, _ctx: $ctx, $($rc_arg)* _cfg: &mut ConfigBag,...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
fn runtime_components(&self, _: &RuntimeComponentsBuilder) -> Cow<'_, RuntimeComponentsBuilder> { Cow::Borrowed(&self.0) } } let input = Input::doesnt_matter(); let runtime_plugins = RuntimePlugins::new() .with_client_plugin(Failin...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:18
async fn test_modify_before_serialization_error_handling() { let expected = r#"ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeSerialization, interceptor_name: Some("FailingInterceptorC"), source: Some("FailingInterceptorC") } })"#.to_string(); interceptor_error_ha...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:19
} #[tokio::test] #[traced_test] async fn test_read_before_attempt_error_handling() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeAttempt, interceptor_name: Some("FailingInterceptorC")"#; intercept...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
721
780
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:20
read_after_signing, &BeforeTransmitInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_transmit_error_handling() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), sourc...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
761
820
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:21
#[traced_test] async fn test_modify_before_deserialization_error_handling() { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeDeserialization, interceptor_name: Some("FailingInterceptorC")"#; interceptor_error_handling_test!( modify_before_des...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
801
860
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
); } #[tokio::test] #[traced_test] async fn test_read_after_attempt_error_handling() { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, interceptor_name: Some("FailingInterceptorC")"#; interceptor_error_handling_test!( read_a...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
($origin_interceptor:ident, $origin_ctx:ty, $destination_interceptor:ident, $destination_ctx:ty, $expected:expr) => { interceptor_error_redirection_test!(__private $origin_interceptor, $origin_ctx, $destination_interceptor, $destination_ctx, $expected, _rc: &RuntimeComponents,); }; (__privat...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
940
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:24
Self( RuntimeComponentsBuilder::new("test") .with_interceptor(SharedInterceptor::new(OriginInterceptor)) .with_interceptor(SharedInterceptor::new(DestinationInterceptor)) ) } } imp...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
921
980
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:25
modify_before_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_serialization_error_causes_jump_to_modify_before_completion() { let expected = r#"ConstructionFailure(ConstructionFailure { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
961
1,020
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:26
&mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_retry_loop_error_causes_jump_to_modify_before_completion() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), sourc...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,001
1,060
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:27
expected ); } #[tokio::test] #[traced_test] async fn test_read_before_signing_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCom...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,041
1,100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:28
); } #[tokio::test] #[traced_test] async fn test_read_before_transmit_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCompletion, interce...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,081
1,140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:29
); } #[tokio::test] #[traced_test] async fn test_read_before_deserialization_error_causes_jump_to_modify_before_attempt_completion( ) { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, interceptor_name: Some("DestinationIntercep...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,121
1,180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:30
expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_completion_error_causes_jump_to_read_after_execution() { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterExecution, interceptor_name: Some("DestinationInterceptor")"#; ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,161
1,220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:31
"test", Input::doesnt_matter(), &runtime_plugins(), StopPoint::BeforeTransmit, ) .await .expect("success"); assert!(context.response().is_none()); } /// The "finally" interceptors should run upon error when the StopPoint is set to BeforeTransm...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,201
1,260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:32
fn modify_before_completion( &self, _context: &mut FinalizerInterceptorContextMut<'_>, _rc: &RuntimeComponents, _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { self.inner .modify_before_completion_called ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,241
1,300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:33
let runtime_plugins = || { RuntimePlugins::new() .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthRuntimePlugin::new()) .with_operation_plugin(TestInterceptorRuntimePlugin { builder: RuntimeComponentsBu...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
5370d2af59d5b60d5683509317096554e3afbeef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5370d2af59d5b60d5683509317096554e3afbeef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,281
1,316
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ // TODO(msrvUpgrade): This can be removed once we upgrade the MSRV to Rust 1.69 #![allow(unknown_lints)] use self::auth::orchestrate_auth; use crate::client::interceptors::Interceptors; use crate::clien...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:2
/// Defines types that work with HTTP types mod http; /// Utility for making one-off unmodeled requests with the orchestrator. #[doc(hidden)] pub mod operation; macro_rules! halt { ([$ctx:ident] => $err:expr) => {{ debug!("encountered orchestrator error; halting"); $ctx.fail($err.into()); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
}; (halt_on_err: { $($interceptor:ident($ctx:ident, $rc:ident, $cfg:ident);)+ }) => { $(run_interceptors!(halt_on_err: $interceptor($ctx, $rc, $cfg));)+ }; (halt_on_err: $interceptor:ident($ctx:ident, $rc:ident, $cfg:ident)) => { halt_on_err!([$ctx] => run_interceptors!(__private $intercepto...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
#[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum StopPoint { /// Don't stop orchestration early None, /// Stop the orchestrator before transmitting the request BeforeTransmit, } /// Same as [`invoke`], but allows for returning early at different points during orchestration. /// /// Orchestration ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
} finally_op(&mut ctx, cfg, &runtime_components).await; Ok(ctx) } .maybe_timeout(operation_timeout_config) .await } .instrument(debug_span!("invoke", service = %service_name, operation = %operation_name)) .await } /// Apply configuration is responsible for ap...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
runtime_components: &RuntimeComponents, stop_point: StopPoint, ) { // Before serialization run_interceptors!(halt_on_err: { read_before_serialization(ctx, runtime_components, cfg); modify_before_serialization(ctx, runtime_components, cfg); }); // Serialization ctx.enter_serializ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
read_after_serialization(ctx, runtime_components, cfg); modify_before_retry_loop(ctx, runtime_components, cfg); }); // If we got a retry strategy from the bag, ask it what to do. // Otherwise, assume we should attempt the initial request. let should_attempt = runtime_components .retry_s...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
// Track which attempt we're currently on. cfg.interceptor_state() .store_put::<RequestAttempts>(i.into()); // Backoff time should not be included in the attempt timeout if let Some((delay, sleep)) = retry_delay.take() { debug!("delaying for {delay:?}"); sleep...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
"the retry strategy requested a delay before sending the retry request, but no 'async sleep' implementation was set" ))); retry_delay = Some((delay, sleep_impl.sleep(delay))); continue; } } } } #[instrument(skip_all, level = "debug")] async fn try...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
// within the interceptor context, so we clone it here. ctx.enter_transmit_phase(); let response = halt_on_err!([ctx] => { let request = ctx.take_request().expect("set during serialization"); trace!(request = ?request, "transmitting request"); let http_client = halt_on_err!([ctx] => runt...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
Some(output_or_error) => output_or_error, None => read_body(response) .instrument(debug_span!("read_body")) .await .map_err(OrchestratorError::response) .and_then(|_| { let _span = debug_span!("deserialize_nonstreaming").ent...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
modify_before_completion(ctx, runtime_components, cfg); read_after_execution(ctx, runtime_components, cfg); }); } #[cfg(all(test, feature = "test-util"))] mod tests { use super::*; use crate::client::auth::no_auth::{NoAuthRuntimePlugin, NO_AUTH_SCHEME_ID}; use crate::client::orchestrator::endpo...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; use tracing_test::traced_test; fn new_request_serializer() -> CannedRequestSerializer { CannedRequestSerializer::success(HttpRequest::empty()) } fn new_response_deserializer() -> CannedResponseDeserializer { CannedR...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
builder: RuntimeComponentsBuilder, } impl TestOperationRuntimePlugin { fn new() -> Self { Self { builder: RuntimeComponentsBuilder::for_tests() .with_retry_strategy(Some(SharedRetryStrategy::new(NeverRetryStrategy::new()))) .with_endpo...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
macro_rules! interceptor_error_handling_test { (read_before_execution, $ctx:ty, $expected:expr,) => { interceptor_error_handling_test!(__private read_before_execution, $ctx, $expected,); }; ($interceptor:ident, $ctx:ty, $expected:expr) => { interceptor_error_handling_test...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
#[derive(Debug)] struct FailingInterceptorC; impl Intercept for FailingInterceptorC { fn name(&self) -> &'static str { "FailingInterceptorC" } fn $interceptor( &self, _ctx: $ctx, $($rc_arg)* ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
impl RuntimePlugin for FailingInterceptorsOperationRuntimePlugin { fn runtime_components(&self, _: &RuntimeComponentsBuilder) -> Cow<'_, RuntimeComponentsBuilder> { Cow::Borrowed(&self.0) } } let input = Input::doesnt_matter(); let...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:18
#[traced_test] async fn test_modify_before_serialization_error_handling() { let expected = r#"ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeSerialization, interceptor_name: Some("FailingInterceptorC"), source: Some("FailingInterceptorC") } })"#.to_string(); i...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:19
); } #[tokio::test] #[traced_test] async fn test_read_before_attempt_error_handling() { let expected = r#"DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeAttempt, interceptor_name: Some("FailingInterceptorC")"#; in...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
721
780
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:20
interceptor_error_handling_test!( read_after_signing, &BeforeTransmitInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_transmit_error_handling() { let expected = r#"DispatchFailure(DispatchFailure { sou...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
761
820
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:21
#[tokio::test] #[traced_test] async fn test_modify_before_deserialization_error_handling() { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeDeserialization, interceptor_name: Some("FailingInterceptorC")"#; interceptor_error_handling_test!( ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
801
860
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
expected ); } #[tokio::test] #[traced_test] async fn test_read_after_attempt_error_handling() { let expected = r#"ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, interceptor_name: Some("FailingInterceptorC")"#; interceptor_error_handling_test!( ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0656e34f774e36546f5348cd2abf9a3a17ea80ef
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0656e34f774e36546f5348cd2abf9a3a17ea80ef/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900