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
fn new() -> Self { Self { builder: RuntimeComponentsBuilder::new("TestOperationRuntimePlugin") .with_retry_strategy(Some(SharedRetryStrategy::new(NeverRetryStrategy::new()))) .with_endpoint_resolver(Some(SharedEndpointResolver::new( ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
($interceptor:ident, $ctx:ty, $expected:expr) => { interceptor_error_handling_test!(__private $interceptor, $ctx, $expected, _rc: &RuntimeComponents,); }; (__private $interceptor:ident, $ctx:ty, $expected:expr, $($rc_arg:tt)*) => { #[derive(Debug)] struct FailingInter...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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!("FailingInterceptorC called!"); Err("FailingInterceptorC".into()) ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
} let input = Input::doesnt_matter(); let runtime_plugins = RuntimePlugins::new() .with_client_plugin(FailingInterceptorsClientRuntimePlugin::new()) .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthRuntimePlug...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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_serialization_error_handling() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ReadBeforeSerialization, interceptor_name: Some(\"FailingInterceptorC\"), source: Some(\"FailingInterceptorC\") } ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-runtime/src/client/orchestrator.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:19
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
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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_modify_before_transmit_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeTransmit, interceptor_name: Some(\"FailingInterceptorC\"), source: Some(\"FailingInterceptorC\"...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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_before_deserialization_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadBeforeDeserialization, interceptor_name: Some(\"FailingInterceptorC\"), source: Some(\"FailingInterceptorC\") }, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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_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
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
fn name(&self) -> &'static str { "OriginInterceptor" } fn $origin_interceptor( &self, _ctx: $origin_ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { tracing::debug!("Ori...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
940
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:24
impl RuntimePlugin for InterceptorsTestOperationRuntimePlugin { fn runtime_components(&self, _: &RuntimeComponentsBuilder) -> Cow<'_, RuntimeComponentsBuilder> { Cow::Borrowed(&self.0) } } let input = Input::doesnt_matter(); let ru...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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_serialization, &mut BeforeSerializationInterceptorContextMut<'_>, modify_before_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_before_serialization_error_causes_jum...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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 BeforeTransmitInterceptorContextMut<'_>, modify_before_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_before_attempt_error_causes_jump_to_modify_before_attempt_completion() { le...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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_read_after_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
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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_read_after_transmit_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAtte...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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
modify_before_attempt_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_after_deserialization_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""ResponseError(Response...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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
read_after_execution, &FinalizerInterceptorContextRef<'_>, expected ); } #[tokio::test] async fn test_stop_points() { let runtime_plugins = || { RuntimePlugins::new() .with_operation_plugin(TestOperationRuntimePlugin::new()) ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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
#[tokio::test] async fn test_stop_points_error_handling() { #[derive(Debug, Default)] struct Inner { modify_before_retry_loop_called: AtomicBool, modify_before_completion_called: AtomicBool, read_after_execution_called: AtomicBool, } #[derive(Clone...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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 read_after_execution( &self, _context: &FinalizerInterceptorContextRef<'_>, _rc: &RuntimeComponents, _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { self.inner .read_after_execution_called...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/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 context = invoke_with_stop_point( "test", "test", Input::doesnt_matter(), &runtime_plugins(), StopPoint::BeforeTransmit, ) .await .expect("success"); assert!(context.response().is_none()); assert!(interceptor ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,281
1,305
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
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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) }; } /// Orchestrates the execution of a request and handling of a response. /// /// The given `runtime_plugins` will be used to generate a `ConfigBag` for this request, /// and then the given `input` will be serialized and transmitted. When a res...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
/// Same as [`invoke`], but allows for returning early at different points during orchestration. /// /// Orchestration will cease at the point specified by `stop_point`. This is useful for orchestrations /// that don't need to actually transmit requests, such as for generating presigned requests. /// /// See the docs o...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
.await } /// Apply configuration is responsible for apply runtime plugins to the config bag, as well as running /// `read_before_execution` interceptors. If a failure occurs due to config construction, `invoke` /// will raise it to the user. If an interceptor fails, then `invoke` #[instrument(skip_all, level = "debug"...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
{ let _span = debug_span!("serialization").entered(); let request_serializer = cfg .load::<SharedRequestSerializer>() .expect("request serializer must be in the config bag") .clone(); let input = ctx.take_input().expect("input set at this point"); let ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
Ok(ShouldAttempt::Yes) => debug!("retry strategy has OKed initial request"), // No, this request shouldn't be sent Ok(ShouldAttempt::No) => { let err: BoxError = "the retry strategy indicates that an initial request shouldn't be made, but it didn't specify why".into(); halt!([ctx...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
let maybe_timeout = async { debug!("beginning attempt #{i}"); try_attempt(ctx, cfg, runtime_components, stop_point).await; finally_attempt(ctx, cfg, runtime_components).await; Result::<_, SdkError<Error, HttpResponse>>::Ok(()) } .maybe_timeout(attempt_time...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
ctx: &mut InterceptorContext, cfg: &mut ConfigBag, runtime_components: &RuntimeComponents, stop_point: StopPoint, ) { run_interceptors!(halt_on_err: read_before_attempt(ctx, runtime_components, cfg)); halt_on_err!([ctx] => orchestrate_endpoint(ctx, runtime_components, cfg).await.map_err(Orchestrato...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
Ok(connector_error) => OrchestratorError::connector(*connector_error), Err(box_err) => OrchestratorError::other(box_err) } }) }); trace!(response = ?response, "received response from service"); ctx.set_response(response); ctx.enter_before_deserialization_phase(); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
ctx.set_output_or_error(output_or_error); ctx.enter_after_deserialization_phase(); run_interceptors!(halt_on_err: read_after_deserialization(ctx, runtime_components, cfg)); } #[instrument(skip_all, level = "debug")] async fn finally_attempt( ctx: &mut InterceptorContext, cfg: &mut ConfigBag, runti...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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::auth::static_resolver::StaticAuthSchemeOptionResolver; use aws_smithy_runtime_api::client::auth::{ AuthSchemeOptionResolverParams, SharedAuthSchemeOptionResolver, }; use aws_smithy_runtime_api::client::connectors::{HttpConnector, SharedHttpConnector}; use aws_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
.map(Output::erase), ) } #[derive(Debug, Default)] struct OkConnector {} impl OkConnector { fn new() -> Self { Self::default() } } impl HttpConnector for OkConnector { fn call(&self, _request: HttpRequest) -> BoxFuture<HttpResponse> { Bo...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
} } impl RuntimePlugin for TestOperationRuntimePlugin { fn config(&self) -> Option<FrozenLayer> { let mut layer = Layer::new("TestOperationRuntimePlugin"); layer.store_put(AuthSchemeOptionResolverParams::new("idontcare")); layer.store_put(EndpointResolverParams::new(...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
} #[derive(Debug)] struct FailingInterceptorB; impl Interceptor for FailingInterceptorB { fn name(&self) -> &'static str { "FailingInterceptorB" } fn $interceptor( &self, _ctx: $ctx, $($rc_a...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
} impl RuntimePlugin for FailingInterceptorsClientRuntimePlugin { fn runtime_components(&self) -> Cow<'_, RuntimeComponentsBuilder> { Cow::Borrowed(&self.0) } } #[derive(Debug)] struct FailingInterceptorsOperationRuntim...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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_execution_error_handling() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ReadBeforeExecution, interceptor_name: Some(\"FailingInterceptorC\"), source: Some(\"FailingInterceptorC\") } })""#.to...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:18
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(Non...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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_read_before_signing_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeSigning, interceptor_name: Some(\"FailingInterceptorC\"), source: Some(\"FailingInterceptorC\") }, c...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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_after_transmit_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterTransmit, interceptor_name: Some(\"FailingInterceptorC\"), source: Some(\"FailingInterceptorC\") }, raw: Response { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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_deserialization, &AfterDeserializationInterceptorContextRef<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_modify_before_attempt_completion_error_handling() { let expected = r#""ResponseErro...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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_execution_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterExecution, interceptor_name: Some(\"FailingInterceptorC\"), source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200,...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
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
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
940
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:24
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(ConstructionFailure { source: InterceptorError { kind: ModifyBeforeCom...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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_after_serialization_error_causes_jump_to_modify_before_completion() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeCompletion, interceptor_name:...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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_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, interceptor_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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_transmit_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeAttemptCompletion, interceptor_name: ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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_deserialization_error_causes_jump_to_modify_before_attempt_completion( ) { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, interceptor_name: Some(\"DestinationInterceptor\"), so...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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_attempt_completion_error_causes_jump_to_read_after_attempt() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, interceptor_name: Some(\"DestinationInterceptor\"), source: Some(\"Destinati...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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
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 let context = ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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
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
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/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
} impl RuntimePlugin for TestInterceptorRuntimePlugin { fn runtime_components(&self) -> Cow<'_, RuntimeComponentsBuilder> { Cow::Borrowed(&self.builder) } } let interceptor = TestInterceptor::default(); let runtime_plugins = || { Runti...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
d4d99f96ecb48bd90124102b3607e49df0194723
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/d4d99f96ecb48bd90124102b3607e49df0194723/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,241
1,284
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
/// Same as [`invoke`], but allows for returning early at different points during orchestration. /// /// Orchestration will cease at the point specified by `stop_point`. This is useful for orchestrations /// that don't need to actually transmit requests, such as for generating presigned requests. /// /// See the docs o...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8b75578df5cddfddbcf9b51d22d3a1cd8800ba82
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8b75578df5cddfddbcf9b51d22d3a1cd8800ba82/sdk/aws-smithy-runtime/src/client/orchestrator.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:5
.await } /// Apply configuration is responsible for apply runtime plugins to the config bag, as well as running /// `read_before_execution` interceptors. If a failure occurs due to config construction, `invoke` /// will raise it to the user. If an interceptor fails, then `invoke` #[instrument(skip_all)] fn apply_confi...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8b75578df5cddfddbcf9b51d22d3a1cd8800ba82
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8b75578df5cddfddbcf9b51d22d3a1cd8800ba82/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
let maybe_timeout = async { debug!("beginning attempt #{i}"); try_attempt(ctx, cfg, runtime_components, stop_point).await; finally_attempt(ctx, cfg, runtime_components).await; Result::<_, SdkError<Error, HttpResponse>>::Ok(()) } .maybe_timeout(attempt_time...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8b75578df5cddfddbcf9b51d22d3a1cd8800ba82
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8b75578df5cddfddbcf9b51d22d3a1cd8800ba82/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
Ok(connector_error) => OrchestratorError::connector(*connector_error), Err(box_err) => OrchestratorError::other(box_err) } }) }); trace!(response = ?response, "received response from service"); ctx.set_response(response); ctx.enter_before_deserialization_phase(); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8b75578df5cddfddbcf9b51d22d3a1cd8800ba82
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8b75578df5cddfddbcf9b51d22d3a1cd8800ba82/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
ctx.set_output_or_error(output_or_error); ctx.enter_after_deserialization_phase(); run_interceptors!(halt_on_err: read_after_deserialization(ctx, runtime_components, cfg)); } #[instrument(skip_all)] async fn finally_attempt( ctx: &mut InterceptorContext, cfg: &mut ConfigBag, runtime_components: &R...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
8b75578df5cddfddbcf9b51d22d3a1cd8800ba82
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8b75578df5cddfddbcf9b51d22d3a1cd8800ba82/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::auth::static_resolver::StaticAuthSchemeOptionResolver; use aws_smithy_runtime_api::client::auth::{ AuthSchemeOptionResolverParams, SharedAuthSchemeOptionResolver, }; use aws_smithy_runtime_api::client::connectors::{HttpConnector, SharedHttpConnector}; use aws_...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
38f7658917b57ddcdf7161b18769fc12ad2f24ba
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/38f7658917b57ddcdf7161b18769fc12ad2f24ba/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
.map(|res| Output::erase(res)), ) } #[derive(Debug, Default)] struct OkConnector {} impl OkConnector { fn new() -> Self { Self::default() } } impl HttpConnector for OkConnector { fn call(&self, _request: HttpRequest) -> BoxFuture<HttpResponse> { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
38f7658917b57ddcdf7161b18769fc12ad2f24ba
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/38f7658917b57ddcdf7161b18769fc12ad2f24ba/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
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
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:3
(__private $interceptor:ident($ctx:ident, $rc:ident, $cfg:ident)) => { 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, ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:4
async move { 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 = ?runti...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
} } // Save a request checkpoint before we make the request. This will allow us to "rewind" // 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 ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
// If no strategy was set, we won't retry. let should_attempt = halt_on_err!([ctx] => runtime_components .retry_strategy() .should_attempt_retry(ctx, runtime_components, cfg) .map_err(OrchestratorError::other)); match should_attempt { // Yes, let's retry t...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
halt_on_err!([ctx] => orchestrate_auth(ctx, runtime_components, cfg).await.map_err(OrchestratorError::other)); run_interceptors!(halt_on_err: { read_after_signing(ctx, runtime_components, cfg); modify_before_transmit(ctx, runtime_components, cfg); read_before_transmit(ctx, runtime_component...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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_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"); let may...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:11
read_after_attempt(ctx, runtime_components, cfg); }); } #[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); ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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::interceptors::{Interceptor, SharedInterceptor}; use aws_smithy_runtime_api::client::orchestrator::{BoxFuture, Future, HttpRequest}; use aws_smithy_runtime_api::client::retries::SharedRetryStrategy; use aws_smithy_runtime_api::client::runtime_components::RuntimeComp...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
impl HttpConnector for OkConnector { fn call(&self, _request: HttpRequest) -> BoxFuture<HttpResponse> { Box::pin(Future::ready(Ok(::http::Response::builder() .status(200) .body(SdkBody::empty()) .expect("OK response is valid")))) } } #...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:14
fn runtime_components(&self) -> Cow<'_, RuntimeComponentsBuilder> { Cow::Borrowed(&self.builder) } } macro_rules! interceptor_error_handling_test { (read_before_execution, $ctx:ty, $expected:expr,) => { interceptor_error_handling_test!(__private read_before_execution, $c...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:15
#[derive(Debug)] struct FailingInterceptorC; impl Interceptor for FailingInterceptorC { fn $interceptor( &self, _ctx: $ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), BoxError> ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:16
fn runtime_components(&self) -> Cow<'_, RuntimeComponentsBuilder> { Cow::Borrowed(&self.0) } } let input = TypeErasedBox::new(Box::new(())); let runtime_plugins = RuntimePlugins::new() .with_client_plugin(FailingInterceptorsClientR...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:17
&mut BeforeSerializationInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_before_serialization_error_handling() { let expected = r#""ConstructionFailure(ConstructionFailure { source: InterceptorError { kind: ReadBeforeSerialization, so...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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_read_before_attempt_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ReadBeforeAttempt, source: Some(\"FailingInterceptorC\") }, connection: Unknown } })""#.to_string(); interceptor_error_ha...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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_transmit_error_handling() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), source: InterceptorError { kind: ModifyBeforeTransmit, source: Some(\"FailingInterceptorC\") }, connection: Unknow...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
721
780
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:20
modify_before_deserialization, &mut BeforeDeserializationInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_before_deserialization_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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_read_after_attempt_error_handling() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ReadAfterAttempt, source: Some(\"FailingInterceptorC\") }, raw: Response { status: 200, version: HTTP/1.1, headers: {}, body: SdkBody { inner: Once(Some(b\"\")...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
801
860
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:22
#[derive(Debug)] struct OriginInterceptor; impl Interceptor for OriginInterceptor { fn $origin_interceptor( &self, _ctx: $origin_ctx, $($rc_arg)* _cfg: &mut ConfigBag, ) -> Result<(), ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
841
900
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:23
fn runtime_components(&self) -> Cow<'_, RuntimeComponentsBuilder> { Cow::Borrowed(&self.0) } } let input = TypeErasedBox::new(Box::new(())); let runtime_plugins = RuntimePlugins::new() .with_operation_plugin(TestOperationRuntimePlu...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
881
940
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:24
&mut BeforeSerializationInterceptorContextMut<'_>, modify_before_completion, &mut FinalizerInterceptorContextMut<'_>, expected ); } #[tokio::test] #[traced_test] async fn test_read_before_serialization_error_causes_jump_to_modify_before_completion() { ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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_read_before_attempt_error_causes_jump_to_modify_before_attempt_completion() { 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
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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_read_after_signing_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""DispatchFailure(DispatchFailure { source: ConnectorError { kind: Other(None), so...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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_after_transmit_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: ModifyBeforeAttemptCompletion, source: Some(\"DestinationInterceptor\...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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_read_after_deserialization_error_causes_jump_to_modify_before_attempt_completion() { let expected = r#""ResponseError(ResponseError { source: InterceptorError { kind: Modif...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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
&FinalizerInterceptorContextRef<'_>, expected ); } #[tokio::test] async fn test_stop_points() { let runtime_plugins = || { RuntimePlugins::new() .with_operation_plugin(TestOperationRuntimePlugin::new()) .with_operation_plugin(NoAuthRun...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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
async fn test_stop_points_error_handling() { #[derive(Debug, Default)] struct Inner { modify_before_retry_loop_called: AtomicBool, modify_before_completion_called: AtomicBool, read_after_execution_called: AtomicBool, } #[derive(Clone, Debug, Default)] ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/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
_rc: &RuntimeComponents, _cfg: &mut ConfigBag, ) -> Result<(), BoxError> { self.inner .read_after_execution_called .store(true, Ordering::Relaxed); Ok(()) } } #[derive(Debug)] struct ...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,201
1,257
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:32
.expect("success"); assert!(context.response().is_none()); assert!(interceptor .inner .modify_before_retry_loop_called .load(Ordering::Relaxed)); assert!(interceptor .inner .modify_before_completion_called .load(Ordering::R...
rust
rust
macro-heavy
awslabs/aws-sdk-rust
sdk/aws-smithy-runtime/src/client/orchestrator.rs
Apache-2.0
ce28848a2f73a8ba0c4b526135983ce8ef19255e
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ce28848a2f73a8ba0c4b526135983ce8ef19255e/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1,241
1,257
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
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
1
60
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
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/sdk/aws-smithy-runtime/src/client/orchestrator.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:6
let mut body = SdkBody::taken(); 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...
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
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:7
// Save a request checkpoint before we make the request. This will allow us to "rewind" // 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 ...
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
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:8
.should_attempt_retry(ctx, runtime_components, cfg) .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 => { ...
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
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:9
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::BeforeTransmit = stop_point { debug!("ending o...
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
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:10
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"); let maybe_deserialized = { let _span = debug_span!("deserialize_streamin...
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
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
fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fa5105e87e62527c549dd0c0d27fec0ab0fe0aa9/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::retries::SharedRetryStrategy; 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 ...
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
441
500
awslabs/aws-sdk-rust:sdk/aws-smithy-runtime/src/client/orchestrator.rs:13
.status(200) .body(SdkBody::empty()) .expect("OK response is valid")))) } } #[derive(Debug)] struct TestOperationRuntimePlugin { builder: RuntimeComponentsBuilder, } impl TestOperationRuntimePlugin { fn new() -> Self { Self { ...
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
481
540