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
} 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_handli...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
impl Interceptor for FailingInterceptorC { fn $interceptor( &self, _ctx: $ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("FailingInterceptorC called!");...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
} let input = TypeErasedBox::new(Box::new(())); let runtime_plugins = RuntimePlugins::new() .with_client_plugin(FailingInterceptorsClientRuntimePlugin::new()) .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthR...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
} #[tokio::test] #[traced_test] async fn test_read_before_serialization_error_handling() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ReadBeforeSerialization, source: Some(\"FailingInterceptorC\") } })""#.to_string(); interceptor_error_hand...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:18
read_before_attempt, &BeforeTransmitInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_signing_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), sour...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:19
#[traced_test] async fn test_modify_before_transmit_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeTransmit, source: Some(\"FailingInterceptorC\") }, connection: Unknown } })""#.to_string(); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
721
780
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:20
); } #[tokio::test] #[traced_test] async fn test_read_before_deserialization_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadBeforeDeserialization, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, h...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
761
820
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:21
interceptor_error_handling_test!( read_after_attempt, &FinalizerInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_completion_error_handling() { let expected = r#""ResponseError(ResponseError { source: I...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
801
860
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
fn $origin_interceptor( &self, _ctx: $origin_ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("OriginInterceptor called!"); Err("OriginInterceptor".in...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
} let input = TypeErasedBox::new(Box::new(())); let runtime_plugins = RuntimePlugins::new() .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthRuntimePlugin::new()) .with_operation_plugin(InterceptorsTestOperati...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
940
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:24
expected ); } #[tokio::test] #[traced_test] async fn test_read_before_serialization_error_causes_jump_to_modify_before_completion() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeCompletion, source: Some(\"DestinationIntercept...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
921
980
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:25
); } #[tokio::test] #[traced_test] async fn test_read_before_attempt_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source:...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
961
1,020
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:26
} #[tokio::test] #[traced_test] async fn test_read_after_signing_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/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_read_after_transmit_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"DestinationInterceptor\") }, raw: Response { status: 2...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/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_after_deserialization_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"DestinationInterceptor\") }, raw: Re...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/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] async fn test_stop_points() { let runtime_plugins = || { RuntimePlugins::new() .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthRuntimePlugin::new()) }; // StopPoint::None should result i...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/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_retry_loop_called: AtomicBool, modify_before_completion_called: AtomicBool, read_after_execution_called: AtomicBool, } #[derive(Clone, Debug, Default)] struct TestInterceptor { inner: Arc<Inner>, } impl Interceptor for TestInterc...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/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
self.inner .read_after_execution_called .store(true, Ordering::Relaxed); Ok(()) } } #[derive(Debug)] struct TestInterceptorRuntimePlugin { builder: RuntimeComponentsBuilder, } impl RuntimePlugin for ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,201
1,254
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::orchestrator::endpoints::orchestrate_endpoin...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:2
macro_rules! halt { ([$ctx:ident] => $err:expr) => {{ debug!("encountered orchestrator error; halting"); $ctx.fail($err.into()); return; }}; } macro_rules! halt_on_err { ([$ctx:ident] => $expr:expr) => { match $expr { Ok(ok) => ok, Err(err) => halt!([...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
Interceptors::new($rc.interceptors()).$interceptor($ctx, $rc, $cfg) }; } pub async fn invoke( service_name: &str, operation_name: &str, input: Input, runtime_plugins: &RuntimePlugins, ) -> Result<Output, SdkError<Error, HttpResponse>> { invoke_with_stop_point( service_name, oper...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
let mut cfg = ConfigBag::base(); let cfg = &mut cfg; let mut ctx = InterceptorContext::new(input); let runtime_components = apply_configuration(&mut ctx, cfg, runtime_plugins) .map_err(SdkError::construction_failure)?; trace!(runtime_components = ?runtime_components); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
let operation_rc_builder = runtime_plugins.apply_operation_configuration(cfg)?; continue_on_err!([ctx] => Interceptors::new(operation_rc_builder.interceptors()).read_before_execution(true, ctx, cfg)); // The order below is important. Client interceptors must run before operation interceptors. Ok(RuntimeCom...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
mem::swap(&mut body, ctx.request_mut().expect("set above").body_mut()); let loaded_body = halt_on_err!([ctx] => ByteStream::new(body).collect().await).into_bytes(); *ctx.request_mut().as_mut().expect("set above").body_mut() = SdkBody::from(loaded_body.clone()); cfg.interceptor_state(...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
// the request in the case of retry attempts. ctx.save_checkpoint(); let mut retry_delay = None; for i in 1u32.. { // Break from the loop if we can't rewind the request's state. This will always succeed the // first time, but will fail on subsequent iterations if the request body wasn't retr...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
.map_err(OrchestratorError::other)); match should_attempt { // Yes, let's retry the request ShouldAttempt::Yes => continue, // No, this request shouldn't be retried ShouldAttempt::No => { debug!("a retry is either unnecessary or not possible, exiti...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
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::BeforeTransmit = stop_point { debug!("ending orchestration early because the stop point is `BeforeTransm...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
let response_deserializer = cfg .load::<DynResponseDeserializer>() .expect("a request deserializer must be in the config bag"); let maybe_deserialized = { let _span = debug_span!("deserialize_streaming").entered(); response_deserializer.deserialize_streaming(respo...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
#[instrument(skip_all)] async fn finally_op( ctx: &mut InterceptorContext, cfg: &mut ConfigBag, runtime_components: &RuntimeComponents, ) { run_interceptors!(continue_on_err: { modify_before_completion(ctx, runtime_components, cfg); read_after_execution(ctx, runtime_components, cfg); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
use aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder; use aws_smithy_runtime_api::client::runtime_plugin::{RuntimePlugin, RuntimePlugins}; use aws_smithy_types::config_bag::{ConfigBag, FrozenLayer, Layer}; use aws_smithy_types::type_erasure::{TypeErasedBox, TypedBox}; use std...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
.body(SdkBody::empty()) .expect("OK response is valid")))) } } #[derive(Debug)] struct TestOperationRuntimePlugin { builder: RuntimeComponentsBuilder, } impl TestOperationRuntimePlugin { fn new() -> Self { Self { builder: RuntimeC...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
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
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
fn $interceptor( &self, _ctx: $ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("FailingInterceptorC called!"); Err("FailingInterceptorC".into()) ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
let input = TypeErasedBox::new(Box::new(())); let runtime_plugins = RuntimePlugins::new() .with_client_plugin(FailingInterceptorsClientRuntimePlugin::new()) .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthRuntimePlugin::n...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
#[tokio::test] #[traced_test] async fn test_read_before_serialization_error_handling() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ReadBeforeSerialization, source: Some(\"FailingInterceptorC\") } })""#.to_string(); interceptor_error_handling_te...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:18
&BeforeTransmitInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_signing_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: Modi...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:19
async fn test_modify_before_transmit_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeTransmit, source: Some(\"FailingInterceptorC\") }, connection: Unknown } })""#.to_string(); interceptor_er...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
721
780
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:20
} #[tokio::test] #[traced_test] async fn test_read_before_deserialization_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadBeforeDeserialization, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers:...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
761
820
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:21
read_after_attempt, &FinalizerInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_completion_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeCompletion...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
801
860
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
&self, _ctx: $origin_ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("OriginInterceptor called!"); Err("OriginInterceptor".into()) } } ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
let input = TypeErasedBox::new(Box::new(())); let runtime_plugins = RuntimePlugins::new() .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthRuntimePlugin::new()) .with_operation_plugin(InterceptorsTestOperationRuntimePlugin...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
940
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:24
); } #[tokio::test] #[traced_test] async fn test_read_before_serialization_error_causes_jump_to_modify_before_completion() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeCompletion, source: Some(\"DestinationInterceptor\") } })""#.to_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
921
980
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:25
} #[tokio::test] #[traced_test] async fn test_read_before_attempt_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
961
1,020
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:26
#[tokio::test] #[traced_test] async fn test_read_after_signing_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"Destina...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/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_read_after_transmit_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"DestinationInterceptor\") }, raw: Response { status: 2...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/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_after_deserialization_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"DestinationInterceptor\") }, raw: Response ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/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] async fn test_stop_points() { let runtime_plugins = || { RuntimePlugins::new() .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthRuntimePlugin::new()) }; // StopPoint::None should result in a res...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/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_completion_called: AtomicBool, read_after_execution_called: AtomicBool, } #[derive(Clone, Debug, Default)] struct TestInterceptor { inner: Arc<Inner>, } impl Interceptor for TestInterceptor { fn modify_before_retry_loop( ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/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
.read_after_execution_called .store(true, Ordering::Relaxed); Ok(()) } } #[derive(Debug)] struct TestInterceptorRuntimePlugin { builder: RuntimeComponentsBuilder, } impl RuntimePlugin for TestInterceptorRuntimePlugin { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,201
1,253
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:32
.inner .modify_before_retry_loop_called .load(Ordering::Relaxed)); assert!(interceptor .inner .modify_before_completion_called .load(Ordering::Relaxed)); assert!(interceptor .inner .read_after_execution_called ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
35d96ea15378750dd69bdccc39406b9e45f24cd8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/35d96ea15378750dd69bdccc39406b9e45f24cd8/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,241
1,253
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
.map_err(OrchestratorError::other)); match should_attempt { // Yes, let's retry the request ShouldAttempt::Yes => continue, // No, this request shouldn't be retried ShouldAttempt::No => { debug!("a retry is either unnecessary or not possible, exiti...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
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::BeforeTransmit = stop_point { debug!("ending orchestration early because the stop point is `BeforeTransm...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
.load::<DynResponseDeserializer>() .expect("a request deserializer must be in the config bag"); let maybe_deserialized = { let _span = debug_span!("deserialize_streaming").entered(); response_deserializer.deserialize_streaming(response) }; match maybe_deserial...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
async fn finally_op( ctx: &mut InterceptorContext, cfg: &mut ConfigBag, runtime_components: &RuntimeComponents, ) { run_interceptors!(continue_on_err: { modify_before_completion(ctx, runtime_components, cfg); read_after_execution(ctx, runtime_components, cfg); }); } #[cfg(all(test, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
use aws_smithy_runtime_api::client::runtime_plugin::{RuntimePlugin, RuntimePlugins}; use aws_smithy_types::config_bag::{ConfigBag, FrozenLayer, Layer}; use aws_smithy_types::type_erasure::{TypeErasedBox, TypedBox}; use std::borrow::Cow; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::A...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
.expect("OK response is valid")))) } } #[derive(Debug)] struct TestOperationRuntimePlugin { builder: RuntimeComponentsBuilder, } impl TestOperationRuntimePlugin { fn new() -> Self { Self { builder: RuntimeComponentsBuilder::new("TestOperationRunt...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
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
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
&self, _ctx: $ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("FailingInterceptorC called!"); Err("FailingInterceptorC".into()) } } ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
let input = TypeErasedBox::new(Box::new(())); let runtime_plugins = RuntimePlugins::new() .with_client_plugin(FailingInterceptorsClientRuntimePlugin::new()) .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthRuntimePlugin::n...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
#[tokio::test] #[traced_test] async fn test_read_before_serialization_error_handling() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ReadBeforeSerialization, source: Some(\"FailingInterceptorC\") } })""#.to_string(); interceptor_error_handling_te...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:18
expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_signing_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeSigning, source: Some(\"FailingInterceptorC\")...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:19
let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeTransmit, source: Some(\"FailingInterceptorC\") }, connection: Unknown } })""#.to_string(); interceptor_error_handling_test!( modify_before_transmit, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
721
780
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:20
#[tokio::test] #[traced_test] async fn test_read_before_deserialization_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadBeforeDeserialization, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, bo...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
761
820
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:21
&FinalizerInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_completion_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeCompletion, source: Some(\"FailingIntercep...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
801
860
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
_ctx: $origin_ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("OriginInterceptor called!"); Err("OriginInterceptor".into()) } } #[derive(Debug)] ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
let input = TypeErasedBox::new(Box::new(())); let runtime_plugins = RuntimePlugins::new() .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthRuntimePlugin::new()) .with_operation_plugin(InterceptorsTestOperationRuntimePlugin...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
940
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:24
} #[tokio::test] #[traced_test] async fn test_read_before_serialization_error_causes_jump_to_modify_before_completion() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeCompletion, source: Some(\"DestinationInterceptor\") } })""#.to_string(...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
921
980
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:25
#[tokio::test] #[traced_test] async fn test_read_before_attempt_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"Destin...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
961
1,020
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:26
#[tokio::test] #[traced_test] async fn test_read_after_signing_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"Destina...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/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
#[traced_test] async fn test_read_after_transmit_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"DestinationInterceptor\") }, raw: Response { status: 200, version: HTTP/1...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,041
1,100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:30
read_after_execution_called: AtomicBool, } #[derive(Clone, Debug, Default)] struct TestInterceptor { inner: Arc<Inner>, } impl Interceptor for TestInterceptor { fn modify_before_retry_loop( &self, _context: &mut BeforeTrans...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/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
.store(true, Ordering::Relaxed); Ok(()) } } #[derive(Debug)] struct TestInterceptorRuntimePlugin { builder: RuntimeComponentsBuilder, } impl RuntimePlugin for TestInterceptorRuntimePlugin { fn runtime_components(&self) -> Cow<'...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,201
1,252
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:32
.modify_before_retry_loop_called .load(Ordering::Relaxed)); assert!(interceptor .inner .modify_before_completion_called .load(Ordering::Relaxed)); assert!(interceptor .inner .read_after_execution_called .load(Ordering::R...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
a36808a50428f3c1629f1cdfcb92453ec862c877
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/a36808a50428f3c1629f1cdfcb92453ec862c877/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,241
1,252
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
let mut cfg = ConfigBag::base(); let cfg = &mut cfg; let mut ctx = InterceptorContext::new(input); let runtime_components = apply_configuration(&mut ctx, cfg, runtime_plugins) .map_err(SdkError::construction_failure)?; trace!(runtime_components = ?runtime_components); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
eb5d5753cf1c50253e1e392e0010fad9319433eb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/eb5d5753cf1c50253e1e392e0010fad9319433eb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
let operation_rc_builder = runtime_plugins.apply_operation_configuration(cfg)?; continue_on_err!([ctx] => Interceptors::new(operation_rc_builder.interceptors()).read_before_execution(true, ctx, cfg)); // The order below is important. Client interceptors must run before operation interceptors. Ok(RuntimeCom...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
eb5d5753cf1c50253e1e392e0010fad9319433eb
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/eb5d5753cf1c50253e1e392e0010fad9319433eb/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
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::orchestrator::endpoints::orchestrate_endpoin...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:2
debug!("encountered orchestrator error; halting"); $ctx.fail($err.into()); return; }}; } macro_rules! halt_on_err { ([$ctx:ident] => $expr:expr) => { match $expr { Ok(ok) => ok, Err(err) => halt!([$ctx] => err), } }; } macro_rules! continue_on_err { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
/// Allows for returning early at different points during orchestration. #[non_exhaustive] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub enum StopPoint { /// Don't stop orchestration early None, /// Stop the orchestrator before transmitting the request BeforeTransmit, } pub async fn invoke_with_sto...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
.maybe_timeout_with_config(operation_timeout_config) .await } .instrument(debug_span!("invoke", service = %service_name, operation = %operation_name)) .await } /// Apply configuration is responsible for apply runtime plugins to the config bag, as well as running /// `read_before_execution` intercep...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
{ let _span = debug_span!("serialization").entered(); let request_serializer = cfg.request_serializer(); let input = ctx.take_input().expect("input set at this point"); let request = halt_on_err!([ctx] => request_serializer.serialize_input(input, cfg).map_err(OrchestratorError::other)); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
Err(err) => halt!([ctx] => OrchestratorError::other(err)), Ok(ShouldAttempt::YesAfterDelay(delay)) => { let sleep_impl = halt_on_err!([ctx] => cfg.sleep_impl().ok_or(OrchestratorError::other( "the retry strategy requested a delay before sending the initial request, but no 'async slee...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
.map_err(|err| OrchestratorError::timeout(err.into_source().unwrap())); // We continue when encountering a timeout error. The retry classifier will decide what to do with it. continue_on_err!([ctx] => maybe_timeout); let retry_strategy = cfg.retry_strategy(); // If we got a retry stra...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
) { halt_on_err!([ctx] => interceptors.read_before_attempt(ctx, cfg)); halt_on_err!([ctx] => orchestrate_endpoint(ctx, cfg).await.map_err(OrchestratorError::other)); halt_on_err!([ctx] => interceptors.modify_before_signing(ctx, cfg)); halt_on_err!([ctx] => interceptors.read_before_signing(ctx, cfg)); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
ctx.enter_deserialization_phase(); let output_or_error = async { let response = ctx.response_mut().expect("set during transmit"); let response_deserializer = cfg.response_deserializer(); let maybe_deserialized = { let _span = debug_span!("deserialize_streaming").entered(); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
#[instrument(skip_all)] async fn finally_op( ctx: &mut InterceptorContext, cfg: &mut ConfigBag, interceptors: &Interceptors, ) { continue_on_err!([ctx] => interceptors.modify_before_completion(ctx, cfg)); continue_on_err!([ctx] => interceptors.read_after_execution(ctx, cfg)); } #[cfg(all(test, feat...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
use aws_smithy_runtime_api::client::runtime_plugin::{RuntimePlugin, RuntimePlugins}; use aws_smithy_types::config_bag::{ConfigBag, FrozenLayer, Layer}; use aws_smithy_types::type_erasure::{TypeErasedBox, TypedBox}; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::Arc; use tracing_test::...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:12
} } #[derive(Debug)] struct TestOperationRuntimePlugin; impl RuntimePlugin for TestOperationRuntimePlugin { fn config(&self) -> Option<FrozenLayer> { let mut cfg = Layer::new("test operation"); cfg.set_request_serializer(SharedRequestSerializer::new(new_request_serializ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
struct FailingInterceptorB; impl Interceptor for FailingInterceptorB { fn $interceptor(&self, _ctx: $ctx, _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
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
.with_operation_plugin(NoAuthRuntimePlugin::new()) .with_operation_plugin(FailingInterceptorsOperationRuntimePlugin); let actual = invoke("test", "test", input, &runtime_plugins) .await .expect_err("should error"); let actual = format!("{:?}", actu...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
interceptor_error_handling_test!( read_before_serialization, &BeforeSerializationInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_after_serialization_error_handling() { let expected = r#""DispatchFailure(Dispat...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
#[tokio::test] #[traced_test] async fn test_modify_before_signing_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeSigning, source: Some(\"FailingInterceptorC\") }, connection: Unknown } })""#...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
expected ); } #[tokio::test] #[traced_test] async fn test_read_before_transmit_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeTransmit, source: Some(\"FailingInterceptorC\") }...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:18
let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadBeforeDeserialization, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody { inner: Once(None), retryable: true } } })""#.to_string(); interceptor_error_handling_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/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_completion_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeCompletion, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: Sd...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
721
780
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:20
impl Interceptor for DestinationInterceptor { fn $destination_interceptor( &self, _ctx: $destination_ctx, _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
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
761
820
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:21
let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeCompletion, source: Some(\"DestinationInterceptor\") } })""#.to_string(); interceptor_error_redirection_test!( read_before_execution, &BeforeSerializationInterceptorContextRef<'_>, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/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_redirection_test!( read_after_serialization, &BeforeTransmitInterceptorContextRef<'_>, modify_before_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modif...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
modify_before_signing, &mut BeforeTransmitInterceptorContextMut<'_>, modify_before_attempt_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_before_signing_error_causes_jump_to_modi...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
940
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:24
&mut BeforeTransmitInterceptorContextMut<'_>, modify_before_attempt_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_before_transmit_error_causes_jump_to_modify_before_attempt_completion() { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
921
980
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:25
&mut BeforeDeserializationInterceptorContextMut<'_>, modify_before_attempt_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_before_deserialization_error_causes_jump_to_modify_before_attempt_co...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
0c75242eb1a5ffaac25659e2419f1cbdff559d89
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/0c75242eb1a5ffaac25659e2419f1cbdff559d89/sdk/aws-smithy-runtime/src/client/orchestrator.rs
961
1,020