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-client/src/dvr/replay.rs:3
aws_smithy_protocol_test::assert_uris_match(actual.uri(), expected.uri()); body_comparer(expected.body().as_ref(), actual.body().as_ref())?; let expected_headers = checked_headers .iter() .flat_map(|key| { let _ = expected.headers().get(*key)?;...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
77a600931b61b1989b46c163297f41975cd65db6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/77a600931b61b1989b46c163297f41975cd65db6/sdk/aws-smithy-client/src/dvr/replay.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:4
/// Build a replay connection from a sequence of events pub fn new(events: Vec<Event>) -> Self { let mut event_map: HashMap<_, VecDeque<_>> = HashMap::new(); for event in events { let event_buffer = event_map.entry(event.connection_id).or_default(); event_buffer.push_back(eve...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
77a600931b61b1989b46c163297f41975cd65db6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/77a600931b61b1989b46c163297f41975cd65db6/sdk/aws-smithy-client/src/dvr/replay.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:5
async fn replay_body(events: VecDeque<Event>, mut sender: hyper::body::Sender) { for event in events { match event.action { Action::Request { .. } => panic!(), Action::Response { .. } => panic!(), Action::Data { data, direction: Direction::...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
77a600931b61b1989b46c163297f41975cd65db6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/77a600931b61b1989b46c163297f41975cd65db6/sdk/aws-smithy-client/src/dvr/replay.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:6
} } fn convert_version(version: &str) -> Version { match version { "HTTP/1.1" => Version::HTTP_11, "HTTP/2.0" => Version::HTTP_2, _ => panic!("unsupported: {}", version), } } impl tower::Service<http::Request<SdkBody>> for ReplayingConnection { type Response = http::Response<SdkBod...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
77a600931b61b1989b46c163297f41975cd65db6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/77a600931b61b1989b46c163297f41975cd65db6/sdk/aws-smithy-client/src/dvr/replay.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:7
let recorded_request = tokio::spawn(async move { let mut data_read = vec![]; while let Some(data) = req.body_mut().data().await { data_read .extend_from_slice(data.expect("in memory request should not fail").as_ref()) } req.map(|_| Byte...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
77a600931b61b1989b46c163297f41975cd65db6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/77a600931b61b1989b46c163297f41975cd65db6/sdk/aws-smithy-client/src/dvr/replay.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:8
// insert the finalized body into }); break Ok(builder.body(body).expect("valid builder")); } Action::Data { direction: Direction::Request, data: _data, } => { ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
77a600931b61b1989b46c163297f41975cd65db6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/77a600931b61b1989b46c163297f41975cd65db6/sdk/aws-smithy-client/src/dvr/replay.rs
281
308
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use crate::dvr::{Action, ConnectionId, Direction, Event}; use aws_smithy_http::body::SdkBody; use aws_smithy_http::result::ConnectorError; use bytes::{Bytes, BytesMut}; use http::{Request, Version}; use ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
2009bc55e8c04a2d18f86edacf0f41203dd8b106
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2009bc55e8c04a2d18f86edacf0f41203dd8b106/sdk/aws-smithy-client/src/dvr/replay.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:2
} } } /// Replay traffic recorded by a [`RecordingConnection`](super::RecordingConnection) #[derive(Clone, Debug)] pub struct ReplayingConnection { live_events: Arc<Mutex<HashMap<ConnectionId, VecDeque<Event>>>>, verifiable_events: Arc<HashMap<ConnectionId, Request<Bytes>>>, num_events: Arc<AtomicUsize...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
2009bc55e8c04a2d18f86edacf0f41203dd8b106
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2009bc55e8c04a2d18f86edacf0f41203dd8b106/sdk/aws-smithy-client/src/dvr/replay.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:3
.iter() .flat_map(|key| { let _ = expected.headers().get(*key)?; Some(( *key, expected .headers() .get_all(*key) .iter() ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
2009bc55e8c04a2d18f86edacf0f41203dd8b106
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2009bc55e8c04a2d18f86edacf0f41203dd8b106/sdk/aws-smithy-client/src/dvr/replay.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:6
fn convert_version(version: &str) -> Version { match version { "HTTP/1.1" => Version::HTTP_11, "HTTP/2.0" => Version::HTTP_2, _ => panic!("unsupported: {}", version), } } impl tower::Service<http::Request<SdkBody>> for ReplayingConnection { type Response = http::Response<SdkBody>; ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
2009bc55e8c04a2d18f86edacf0f41203dd8b106
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2009bc55e8c04a2d18f86edacf0f41203dd8b106/sdk/aws-smithy-client/src/dvr/replay.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ use crate::dvr::{Action, ConnectionId, Direction, Event}; use aws_smithy_http::body::SdkBody; use aws_smithy_http::result::ConnectorError; use bytes::{Bytes, BytesMut}; use http::{Request, Version}; use ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/dvr/replay.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:2
} } /// Replay traffic recorded by a [`RecordingConnection`](super::RecordingConnection) #[derive(Clone, Debug)] pub struct ReplayingConnection { live_events: Arc<Mutex<HashMap<ConnectionId, VecDeque<Event>>>>, verifiable_events: Arc<HashMap<ConnectionId, Request<Bytes>>>, num_events: Arc<AtomicUsize>, ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/dvr/replay.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:3
let _ = expected.headers().get(*key)?; Some(( *key, expected .headers() .get_all(*key) .iter() .map(|h| h.to_str().unwrap()) ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/dvr/replay.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:4
} let verifiable_events = event_map .iter() .map(|(id, events)| { let mut body = BytesMut::new(); for event in events { if let Action::Data { direction: Direction::Request, data, ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/dvr/replay.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:5
Action::Data { data, direction: Direction::Response, } => { sender .send_data(Bytes::from(data.into_bytes())) .await .expect("this is in memory traffic that should not fail to send"); } ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/dvr/replay.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:6
"HTTP/2.0" => Version::HTTP_2, _ => panic!("unsupported: {}", version), } } impl tower::Service<http::Request<SdkBody>> for ReplayingConnection { type Response = http::Response<SdkBody>; type Error = ConnectorError; #[allow(clippy::type_complexity)] type Future = std::pin::Pin< Box...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/dvr/replay.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:7
req.map(|_| Bytes::from(data_read)) }); let mut recorded_request = Waitable::Loading(recorded_request); let fut = async move { let resp = loop { let event = events .pop_front() .expect("no events, needed a response event"); ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/dvr/replay.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:8
direction: Direction::Request, data: _data, } => { tracing::info!("get request data"); } Action::Eof { direction: Direction::Response, .. } => p...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/dvr/replay.rs
281
302
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ use crate::dvr::{Action, ConnectionId, Direction, Event}; use aws_smithy_http::body::SdkBody; use aws_smithy_http::result::ConnectorError; use bytes::{Bytes, BytesMut}; use http::{Request, Version}; use...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
01dbe9687205e6be340ce4d5c32f98fa01ca3db7
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/01dbe9687205e6be340ce4d5c32f98fa01ca3db7/sdk/aws-smithy-client/src/dvr/replay.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:2
} } /// Replay traffic recorded by a [`RecordingConnection`](super::RecordingConnection) #[derive(Clone, Debug)] pub struct ReplayingConnection { live_events: Arc<Mutex<HashMap<ConnectionId, VecDeque<Event>>>>, verifiable_events: Arc<HashMap<ConnectionId, Request<Bytes>>>, num_events: Arc<AtomicUsize>, ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
b81528930844c611db098b340489915c627a0603
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b81528930844c611db098b340489915c627a0603/sdk/aws-smithy-client/src/dvr/replay.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:3
let _ = expected.headers().get(*key)?; Some(( *key, expected .headers() .get_all(*key) .iter() .map(|h| h.to_str().unwrap()) ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
b81528930844c611db098b340489915c627a0603
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/b81528930844c611db098b340489915c627a0603/sdk/aws-smithy-client/src/dvr/replay.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:2
} } /// Replay traffic recorded by a [`RecordingConnection`](super::RecordingConnection) #[derive(Clone, Debug)] pub struct ReplayingConnection { live_events: Arc<Mutex<HashMap<ConnectionId, VecDeque<Event>>>>, verifiable_events: Arc<HashMap<ConnectionId, Request<Bytes>>>, num_events: Arc<AtomicUsize>, ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
3d3e1225e59755683893b72ab74bb68a5a853c8d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3d3e1225e59755683893b72ab74bb68a5a853c8d/sdk/aws-smithy-client/src/dvr/replay.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:3
) .into()); } body_comparer(expected.body().as_ref(), actual.body().as_ref())?; let expected_headers = checked_headers .iter() .flat_map(|key| { let _ = expected.headers().get(*key)?; Some(( ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
3d3e1225e59755683893b72ab74bb68a5a853c8d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3d3e1225e59755683893b72ab74bb68a5a853c8d/sdk/aws-smithy-client/src/dvr/replay.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:4
/// Build a replay connection from a sequence of events pub fn new(events: Vec<Event>) -> Self { let mut event_map: HashMap<_, VecDeque<_>> = HashMap::new(); for event in events { let event_buffer = event_map.entry(event.connection_id).or_default(); event_buffer.push_back(eve...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
3d3e1225e59755683893b72ab74bb68a5a853c8d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3d3e1225e59755683893b72ab74bb68a5a853c8d/sdk/aws-smithy-client/src/dvr/replay.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:5
} async fn replay_body(events: VecDeque<Event>, mut sender: hyper::body::Sender) { for event in events { match event.action { Action::Request { .. } => panic!(), Action::Response { .. } => panic!(), Action::Data { data, direction: Directio...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
3d3e1225e59755683893b72ab74bb68a5a853c8d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3d3e1225e59755683893b72ab74bb68a5a853c8d/sdk/aws-smithy-client/src/dvr/replay.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:6
} } } fn convert_version(version: &str) -> Version { match version { "HTTP/1.1" => Version::HTTP_11, "HTTP/2.0" => Version::HTTP_2, _ => panic!("unsupported: {}", version), } } impl tower::Service<http::Request<SdkBody>> for ReplayingConnection { type Response = http::Response<...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
3d3e1225e59755683893b72ab74bb68a5a853c8d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3d3e1225e59755683893b72ab74bb68a5a853c8d/sdk/aws-smithy-client/src/dvr/replay.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:7
let recording = self.recorded_requests.clone(); let recorded_request = tokio::spawn(async move { let mut data_read = vec![]; while let Some(data) = req.body_mut().data().await { data_read .extend_from_slice(data.expect("in memory request should not fai...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
3d3e1225e59755683893b72ab74bb68a5a853c8d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3d3e1225e59755683893b72ab74bb68a5a853c8d/sdk/aws-smithy-client/src/dvr/replay.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/dvr/replay.rs:8
replay_body(events, sender).await; // insert the finalized body into }); break Ok(builder.body(body).expect("valid builder")); } Action::Data { direction: Direction::Request, ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/dvr/replay.rs
Apache-2.0
3d3e1225e59755683893b72ab74bb68a5a853c8d
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/3d3e1225e59755683893b72ab74bb68a5a853c8d/sdk/aws-smithy-client/src/dvr/replay.rs
281
309
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Type-erased variants of [`Client`] and friends. use std::fmt; use tower::{Layer, Service, ServiceExt}; use aws_smithy_http::body::SdkBody; use aws_smithy_http::result::ConnectorError; use boxclone...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/erase.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:2
/// /// ```no_run /// # #[cfg(feature = "https")] /// # fn not_main() { /// use aws_smithy_client::{Builder, Client}; /// struct MyClient { /// client: Client<aws_smithy_client::conns::Https>, /// } /// /// let client = Builder::new() /// .https() /// .middleware(...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/erase.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:3
/// /// ```no_run /// # #[cfg(feature = "https")] /// # fn not_main() { /// # type MyMiddleware = aws_smithy_client::DynMiddleware<aws_smithy_client::DynConnector>; /// use aws_smithy_client::{Builder, Client}; /// struct MyClient { /// client: Client<aws_smithy_client::DynConnector, MyM...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/erase.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:4
/// # fn not_main() { /// use aws_smithy_client::{Builder, Client}; /// struct MyClient { /// client: aws_smithy_client::Client, /// } /// /// let client = Builder::new() /// .https() /// .middleware(tower::layer::util::Identity::new()) /// .build(); /// let clien...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/erase.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:5
where C: bounds::SmithyConnector<Error = E> + Send + 'static, E: Into<ConnectorError>, { Self(BoxCloneService::new(connector.map_err(|e| e.into()))) } #[doc(hidden)] pub fn call_lite( &mut self, req: http::Request<SdkBody>, ) -> BoxFuture<http::Response<SdkBo...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/erase.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:6
#[non_exhaustive] pub struct DynMiddleware<C>( ArcCloneLayer< aws_smithy_http_tower::dispatch::DispatchService<C>, aws_smithy_http::operation::Request, aws_smithy_http::operation::Response, aws_smithy_http_tower::SendOperationError, >, ); impl<C> Clone for DynMiddleware<C> { ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/erase.rs
201
240
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:4
/// # fn not_main() { /// use aws_smithy_client::{Builder, Client}; /// struct MyClient { /// client: aws_smithy_client::Client, /// } /// /// let client = Builder::new() /// .https() /// .middleware(tower::layer::util::Identity::new()) /// .build(); /// let clien...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-client/src/erase.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:5
where C: bounds::SmithyConnector<Error = E> + Send + 'static, E: Into<ConnectorError>, { Self(BoxCloneService::new(connector.map_err(|e| e.into()))) } #[doc(hidden)] pub fn call_lite( &mut self, req: http::Request<SdkBody>, ) -> BoxFuture<http::Response<SdkBo...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-client/src/erase.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:6
/// memory pressure and suffers an additional vtable indirection for each request, but is unlikely /// to matter in all but the highest-performance settings. #[non_exhaustive] pub struct DynMiddleware<C>( ArcCloneLayer< aws_smithy_http_tower::dispatch::DispatchService<C>, aws_smithy_http::operation:...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
ab00f9b0e88c9cf16c186fb754aa64433a4ec181
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/ab00f9b0e88c9cf16c186fb754aa64433a4ec181/sdk/aws-smithy-client/src/erase.rs
201
242
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:4
/// # fn not_main() { /// use aws_smithy_client::{Builder, Client}; /// struct MyClient { /// client: aws_smithy_client::Client, /// } /// /// let client = Builder::new() /// .https() /// .middleware(tower::layer::util::Identity::new()) /// .build(); /// let clien...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
8657f207e05add10eb5b9d0faaa17522e42a3f84
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8657f207e05add10eb5b9d0faaa17522e42a3f84/sdk/aws-smithy-client/src/erase.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:5
where C: bounds::SmithyConnector<Error = E> + Send + 'static, E: Into<ConnectorError>, { Self(BoxCloneService::new(connector.map_err(|e| e.into()))) } } impl Service<http::Request<SdkBody>> for DynConnector { type Response = http::Response<SdkBody>; type Error = ConnectorError; ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
8657f207e05add10eb5b9d0faaa17522e42a3f84
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8657f207e05add10eb5b9d0faaa17522e42a3f84/sdk/aws-smithy-client/src/erase.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:6
); impl<C> Clone for DynMiddleware<C> { fn clone(&self) -> Self { Self(self.0.clone()) } } impl<C> fmt::Debug for DynMiddleware<C> { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt.debug_struct("DynMiddleware").finish() } } impl<C> DynMiddleware<C> { /// Construct...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
8657f207e05add10eb5b9d0faaa17522e42a3f84
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8657f207e05add10eb5b9d0faaa17522e42a3f84/sdk/aws-smithy-client/src/erase.rs
201
232
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:2
/// /// ```no_run /// # #[cfg(feature = "https")] /// # fn not_main() { /// use aws_smithy_client::{Builder, Client}; /// struct MyClient { /// client: Client<aws_smithy_client::conns::Https>, /// } /// /// let client = Builder::new() /// .https() /// .middleware(...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
77a600931b61b1989b46c163297f41975cd65db6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/77a600931b61b1989b46c163297f41975cd65db6/sdk/aws-smithy-client/src/erase.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:4
/// struct MyClient { /// client: aws_smithy_client::Client, /// } /// /// let client = Builder::new() /// .https() /// .middleware(tower::layer::util::Identity::new()) /// .build(); /// let client = MyClient { client: client.into_dyn() }; /// # client.client.check();...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
77a600931b61b1989b46c163297f41975cd65db6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/77a600931b61b1989b46c163297f41975cd65db6/sdk/aws-smithy-client/src/erase.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:5
E: Into<ConnectorError>, { Self(BoxCloneService::new(connector.map_err(|e| e.into()))) } } impl Service<http::Request<SdkBody>> for DynConnector { type Response = http::Response<SdkBody>; type Error = ConnectorError; type Future = BoxFuture<Self::Response, Self::Error>; fn poll_ready( ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
77a600931b61b1989b46c163297f41975cd65db6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/77a600931b61b1989b46c163297f41975cd65db6/sdk/aws-smithy-client/src/erase.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:6
impl<C> Clone for DynMiddleware<C> { fn clone(&self) -> Self { Self(self.0.clone()) } } impl<C> fmt::Debug for DynMiddleware<C> { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt.debug_struct("DynMiddleware").finish() } } impl<C> DynMiddleware<C> { /// Construct a n...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
77a600931b61b1989b46c163297f41975cd65db6
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/77a600931b61b1989b46c163297f41975cd65db6/sdk/aws-smithy-client/src/erase.rs
201
230
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Type-erased variants of [`Client`] and friends. // These types are technically public in that they're reachable from the public trait impls on // DynMiddleware, but no-one should ever look at them o...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
9407b2314c6568f5e73be6951cba668511d366d5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/9407b2314c6568f5e73be6951cba668511d366d5/sdk/aws-smithy-client/src/erase.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:2
/// # fn not_main() { /// use aws_smithy_client::{Builder, Client}; /// struct MyClient { /// client: Client<aws_smithy_client::conns::Https>, /// } /// /// let client = Builder::new() /// .https() /// .middleware(tower::layer::util::Identity::new()) /// .build(); ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
9407b2314c6568f5e73be6951cba668511d366d5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/9407b2314c6568f5e73be6951cba668511d366d5/sdk/aws-smithy-client/src/erase.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:4
/// /// let client = Builder::new() /// .https() /// .middleware(tower::layer::util::Identity::new()) /// .build(); /// let client = MyClient { client: client.into_dyn() }; /// # client.client.check(); /// # } pub fn into_dyn(self) -> DynClient<R> { self.into_dyn_conn...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
9407b2314c6568f5e73be6951cba668511d366d5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/9407b2314c6568f5e73be6951cba668511d366d5/sdk/aws-smithy-client/src/erase.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:5
} } impl Service<http::Request<SdkBody>> for DynConnector { type Response = http::Response<SdkBody>; type Error = ConnectorError; type Future = BoxFuture<Self::Response, Self::Error>; fn poll_ready( &mut self, cx: &mut std::task::Context<'_>, ) -> std::task::Poll<Result<(), Self::E...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
9407b2314c6568f5e73be6951cba668511d366d5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/9407b2314c6568f5e73be6951cba668511d366d5/sdk/aws-smithy-client/src/erase.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:6
>, ); impl<C> Clone for DynMiddleware<C> { fn clone(&self) -> Self { Self(self.0.clone()) } } impl<C> fmt::Debug for DynMiddleware<C> { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt.debug_struct("DynMiddleware").finish() } } impl<C> DynMiddleware<C> { /// Constr...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
9407b2314c6568f5e73be6951cba668511d366d5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/9407b2314c6568f5e73be6951cba668511d366d5/sdk/aws-smithy-client/src/erase.rs
201
233
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Type-erased variants of [`Client`] and friends. // These types are technically public in that they're reachable from the public trait impls on // DynMiddleware, but no-one should ever look at them o...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
30c0dea3a3aa09a77d841b7df1bee7bfe723df58
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/30c0dea3a3aa09a77d841b7df1bee7bfe723df58/sdk/aws-smithy-client/src/erase.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:2
/// # fn not_main() { /// use aws_smithy_client::{Builder, Client}; /// struct MyClient { /// client: Client<aws_smithy_client::conns::Https>, /// } /// /// let client = Builder::new() /// .https() /// .middleware(tower::layer::util::Identity::new()) /// .build(); ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
30c0dea3a3aa09a77d841b7df1bee7bfe723df58
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/30c0dea3a3aa09a77d841b7df1bee7bfe723df58/sdk/aws-smithy-client/src/erase.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Type-erased variants of [`Client`] and friends. // These types are technically public in that they're reachable from the public trait impls on // DynMiddleware, but no-one should ever look at them o...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/erase.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:5
} } impl Service<http::Request<SdkBody>> for DynConnector { type Response = http::Response<SdkBody>; type Error = ConnectorError; type Future = BoxFuture<Self::Response, Self::Error>; fn poll_ready( &mut self, cx: &mut std::task::Context<'_>, ) -> std::task::Poll<Result<(), Self::E...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/erase.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:6
} } impl<C> fmt::Debug for DynMiddleware<C> { fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result { fmt.debug_struct("DynMiddleware").finish() } } impl<C> DynMiddleware<C> { /// Construct a new dynamically-dispatched Smithy middleware. pub fn new<M: bounds::SmithyMiddleware<C> + Send + ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/erase.rs
201
227
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ //! Type-erased variants of [`Client`] and friends. // These types are technically public in that they're reachable from the public trait impls on // DynMiddleware, but no-one should ever look at them ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
564a60670af3a800dbf7b6c4e94bb18323d242bf
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/564a60670af3a800dbf7b6c4e94bb18323d242bf/sdk/aws-smithy-client/src/erase.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:5
} } impl Service<http::Request<SdkBody>> for DynConnector { type Response = http::Response<SdkBody>; type Error = ConnectorError; type Future = BoxFuture<Self::Response, Self::Error>; fn poll_ready( &mut self, cx: &mut std::task::Context<'_>, ) -> std::task::Poll<Result<(), Self::E...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
fe1cfc31a925306b740e22a005fbf0ab6ec4fca7
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fe1cfc31a925306b740e22a005fbf0ab6ec4fca7/sdk/aws-smithy-client/src/erase.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:6
} } impl<C> DynMiddleware<C> { /// Construct a new dynamically-dispatched Smithy middleware. pub fn new<M: bounds::SmithyMiddleware<C> + Send + Sync + 'static>(middleware: M) -> Self { Self(BoxCloneLayer::new(middleware)) } } impl<C> Layer<aws_smithy_http_tower::dispatch::DispatchService<C>> for D...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
fe1cfc31a925306b740e22a005fbf0ab6ec4fca7
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/fe1cfc31a925306b740e22a005fbf0ab6ec4fca7/sdk/aws-smithy-client/src/erase.rs
201
221
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ //! Type-erased variants of [`Client`] and friends. // These types are technically public in that they're reachable from the public trait impls on // DynMiddleware, but no-one should ever look at them ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
5f4378d3e820cebbb6b7e7413d4592c7d5441559
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5f4378d3e820cebbb6b7e7413d4592c7d5441559/sdk/aws-smithy-client/src/erase.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase.rs:2
/// # fn not_main() { /// use aws_smithy_client::{Builder, Client}; /// struct MyClient { /// client: Client<aws_smithy_client::conns::Https>, /// } /// /// let client = Builder::new() /// .https() /// .middleware(tower::layer::util::Identity::new()) /// .build(); ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase.rs
Apache-2.0
5f4378d3e820cebbb6b7e7413d4592c7d5441559
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/5f4378d3e820cebbb6b7e7413d4592c7d5441559/sdk/aws-smithy-client/src/erase.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase/boxclone.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ // This is an adaptation of tower::util::{BoxLayer, BoxService} that includes Clone and doesn't // include Sync. use std::fmt; use std::future::Future; use std::pin::Pin; use std::sync::Arc; use std::ta...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase/boxclone.rs
Apache-2.0
2b4a7b881b8735aad288284e1c140ed40f474d06
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2b4a7b881b8735aad288284e1c140ed40f474d06/sdk/aws-smithy-client/src/erase/boxclone.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase/boxclone.rs:2
}); Self { inner: Arc::new(layer), } } } impl<In, T, U, E> Layer<In> for ArcCloneLayer<In, T, U, E> { type Service = BoxCloneService<T, U, E>; fn layer(&self, inner: In) -> Self::Service { self.inner.layer(inner) } } impl<In, T, U, E> fmt::Debug for ArcCloneLayer<...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase/boxclone.rs
Apache-2.0
2b4a7b881b8735aad288284e1c140ed40f474d06
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2b4a7b881b8735aad288284e1c140ed40f474d06/sdk/aws-smithy-client/src/erase/boxclone.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase/boxclone.rs:3
dyn CloneService< Request, Response = Self::Response, Error = Self::Error, Future = Self::Future, > + 'static + Send + Sync, > { Box::new(self.clone()) } } pub type BoxFuture<T, E> = Pin<Box<...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase/boxclone.rs
Apache-2.0
2b4a7b881b8735aad288284e1c140ed40f474d06
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2b4a7b881b8735aad288284e1c140ed40f474d06/sdk/aws-smithy-client/src/erase/boxclone.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase/boxclone.rs:4
impl<T, U, E> Clone for BoxCloneService<T, U, E> where T: 'static, U: 'static, E: 'static, { fn clone(&self) -> Self { Self { inner: self.inner.clone_box(), } } } impl<T, U, E> Service<T> for BoxCloneService<T, U, E> { type Response = U; type Error = E; type ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase/boxclone.rs
Apache-2.0
2b4a7b881b8735aad288284e1c140ed40f474d06
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2b4a7b881b8735aad288284e1c140ed40f474d06/sdk/aws-smithy-client/src/erase/boxclone.rs
121
173
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase/boxclone.rs:5
type Error = S::Error; #[allow(clippy::type_complexity)] type Future = Pin<Box<dyn Future<Output = Result<S::Response, S::Error>> + Send>>; fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> { self.inner.poll_ready(cx) } fn call(&mut self, request: Request) ->...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase/boxclone.rs
Apache-2.0
2b4a7b881b8735aad288284e1c140ed40f474d06
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2b4a7b881b8735aad288284e1c140ed40f474d06/sdk/aws-smithy-client/src/erase/boxclone.rs
161
173
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase/boxclone.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ // This is an adaptation of tower::util::{BoxLayer, BoxService} that includes Clone and doesn't // include Sync. use std::fmt; use std::future::Future; use std::pin::Pin; use std::sync::Arc; use std::ta...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase/boxclone.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/erase/boxclone.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/erase/boxclone.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ // This is an adaptation of tower::util::{BoxLayer, BoxService} that includes Clone and doesn't // include Sync. use std::fmt; use std::future::Future; use std::pin::Pin; use std::sync::Arc; use std::t...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/erase/boxclone.rs
Apache-2.0
564a60670af3a800dbf7b6c4e94bb18323d242bf
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/564a60670af3a800dbf7b6c4e94bb18323d242bf/sdk/aws-smithy-client/src/erase/boxclone.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Default connectors based on what TLS features are active. Also contains HTTP-related abstractions //! that enable passing HTTP connectors around. use crate::erase::DynConnector; use aws_smithy_async...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
87ae71a59df475262b4ee85c3375b5e2d60d5eab
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/87ae71a59df475262b4ee85c3375b5e2d60d5eab/sdk/aws-smithy-client/src/http_connector.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:2
} } } impl Storable for HttpConnector { type Storer = StoreReplace<HttpConnector>; } impl HttpConnector { /// If `HttpConnector` is `Prebuilt`, return a clone of that connector. /// If `HttpConnector` is `ConnectorFn`, generate a new connector from settings and return it. pub fn connector( ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
87ae71a59df475262b4ee85c3375b5e2d60d5eab
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/87ae71a59df475262b4ee85c3375b5e2d60d5eab/sdk/aws-smithy-client/src/http_connector.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:3
pub fn connect_timeout(mut self, connect_timeout: Duration) -> Self { self.connect_timeout = Some(connect_timeout); self } /// Sets the connect timeout that should be used. /// /// The connect timeout is a limit on the amount of time it takes to initiate a socket connection. pub fn ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
87ae71a59df475262b4ee85c3375b5e2d60d5eab
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/87ae71a59df475262b4ee85c3375b5e2d60d5eab/sdk/aws-smithy-client/src/http_connector.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:4
/// Settings for HTTP Connectors #[non_exhaustive] #[derive(Clone, Default, Debug)] pub struct ConnectorSettings { connect_timeout: Option<Duration>, read_timeout: Option<Duration>, } impl ConnectorSettings { /// Returns a builder for `ConnectorSettings`. pub fn builder() -> ConnectorSettingsBuilder { ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
87ae71a59df475262b4ee85c3375b5e2d60d5eab
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/87ae71a59df475262b4ee85c3375b5e2d60d5eab/sdk/aws-smithy-client/src/http_connector.rs
121
159
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Default connectors based on what TLS features are active. Also contains HTTP-related abstractions //! that enable passing HTTP connectors around. use crate::erase::DynConnector; use aws_smithy_async...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
2fcec800932fc3e127633fde6c64b3a5852d36e3
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2fcec800932fc3e127633fde6c64b3a5852d36e3/sdk/aws-smithy-client/src/http_connector.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:2
} } impl HttpConnector { /// If `HttpConnector` is `Prebuilt`, return a clone of that connector. /// If `HttpConnector` is `ConnectorFn`, generate a new connector from settings and return it. pub fn connector( &self, settings: &ConnectorSettings, sleep: Option<SharedAsyncSleep>, ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
2fcec800932fc3e127633fde6c64b3a5852d36e3
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2fcec800932fc3e127633fde6c64b3a5852d36e3/sdk/aws-smithy-client/src/http_connector.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:3
/// Sets the connect timeout that should be used. /// /// The connect timeout is a limit on the amount of time it takes to initiate a socket connection. pub fn set_connect_timeout(&mut self, connect_timeout: Option<Duration>) -> &mut Self { self.connect_timeout = connect_timeout; self } ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
2fcec800932fc3e127633fde6c64b3a5852d36e3
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2fcec800932fc3e127633fde6c64b3a5852d36e3/sdk/aws-smithy-client/src/http_connector.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:4
read_timeout: Option<Duration>, } impl ConnectorSettings { /// Returns a builder for `ConnectorSettings`. pub fn builder() -> ConnectorSettingsBuilder { Default::default() } /// Returns the connect timeout that should be used. /// /// The connect timeout is a limit on the amount of tim...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
2fcec800932fc3e127633fde6c64b3a5852d36e3
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2fcec800932fc3e127633fde6c64b3a5852d36e3/sdk/aws-smithy-client/src/http_connector.rs
121
154
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Default connectors based on what TLS features are active. Also contains HTTP-related abstractions //! that enable passing HTTP connectors around. use crate::erase::DynConnector; use aws_smithy_async...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
9407b2314c6568f5e73be6951cba668511d366d5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/9407b2314c6568f5e73be6951cba668511d366d5/sdk/aws-smithy-client/src/http_connector.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:2
} } impl HttpConnector { /// If `HttpConnector` is `Prebuilt`, return a clone of that connector. /// If `HttpConnector` is `ConnectorFn`, generate a new connector from settings and return it. pub fn connector( &self, settings: &ConnectorSettings, sleep: Option<Arc<dyn AsyncSleep>>, ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
9407b2314c6568f5e73be6951cba668511d366d5
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/9407b2314c6568f5e73be6951cba668511d366d5/sdk/aws-smithy-client/src/http_connector.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Default connectors based on what TLS features are active. Also contains HTTP-related abstractions //! that enable passing HTTP connectors around. use crate::erase::DynConnector; use aws_smithy_async...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/http_connector.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:2
} impl HttpConnector { /// If `HttpConnector` is `Prebuilt`, return a clone of that connector. /// If `HttpConnector` is `ConnectorFn`, generate a new connector from settings and return it. pub fn connector( &self, settings: &HttpSettings, sleep: Option<Arc<dyn AsyncSleep>>, ) -...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
8159cb8ff570e4dca718e354c31cecdfadfeb0b8
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/8159cb8ff570e4dca718e354c31cecdfadfeb0b8/sdk/aws-smithy-client/src/http_connector.rs
41
80
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ //! Default connectors based on what TLS features are active. Also contains HTTP-related abstractions //! that enable passing HTTP connectors around. use crate::erase::DynConnector; use aws_smithy_asyn...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
4affc2ae319f6aef20a5fa66617c6774b3a7f4ea
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/4affc2ae319f6aef20a5fa66617c6774b3a7f4ea/sdk/aws-smithy-client/src/http_connector.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ //! Default connectors based on what TLS features are active. Also contains HTTP-related abstractions //! that enable passing HTTP connectors around. use crate::erase::DynConnector; use aws_smithy_asyn...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
98a7fbd654d125acb9d70ad3b38c6a8246b37273
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/98a7fbd654d125acb9d70ad3b38c6a8246b37273/sdk/aws-smithy-client/src/http_connector.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/http_connector.rs:2
} impl HttpConnector { /// If `HttpConnector` is `Prebuilt`, return a clone of that connector. /// If `HttpConnector` is `ConnectorFn`, generate a new connector from settings and return it. pub fn connector( &self, settings: &HttpSettings, sleep: Option<Arc<dyn AsyncSleep>>, ) -...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/http_connector.rs
Apache-2.0
98a7fbd654d125acb9d70ad3b38c6a8246b37273
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/98a7fbd654d125acb9d70ad3b38c6a8246b37273/sdk/aws-smithy-client/src/http_connector.rs
41
72
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:1
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ //! Implementation of [`SmithyConnector`](crate::bounds::SmithyConnector) for Hyper //! //! The module provides [`Adapter`] which enables using a [`hyper::Client`] as the connector for a Smithy //! [`Cli...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
1
60
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:2
#![cfg_attr( not(all(feature = "rustls", feature = "client-hyper")), doc = "```no_run,ignore" )] #![cfg_attr( all( feature = "rustls", feature = "client-hyper", feature = "hyper-webpki-doctest-only" ), doc = "```no_run" )] //! use std::time::Duration; //! use aws_smithy_clien...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
41
100
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:3
use crate::hyper_ext::timeout_middleware::{ConnectTimeout, HttpReadTimeout, HttpTimeoutError}; use crate::never::stream::EmptyStream; use aws_smithy_async::future::timeout::TimedOutError; use aws_smithy_async::rt::sleep::{default_async_sleep, SharedAsyncSleep}; use aws_smithy_http::body::SdkBody; use aws_smithy_http::...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
81
140
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:4
conn.is_proxied(), http_info.map(|info| info.remote_addr()), move || match capture_conn.connection_metadata().as_ref() { Some(conn) => conn.poison(), None => tracing::trace!("no connection existed to poison"), }, ); Some(smithy_connecti...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
121
180
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:5
Box::pin(async move { Ok(fut.await.map_err(downcast_error)?.map(SdkBody::from)) }) } } impl Adapter<()> { /// Builder for a Hyper Adapter /// /// Generally, end users should not need to construct an [`Adapter`] manually: a hyper adapter /// will be constructed automatically during client creation. ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
161
220
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:6
} if err.is_user() { return ConnectorError::user(err.into()); } if err.is_closed() || err.is_canceled() || find_source::<std::io::Error>(&err).is_some() { return ConnectorError::io(err.into()); } // We sometimes receive this from S3: hyper::Error(IncompleteMessage) if err.is_inco...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
201
260
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:7
/// # Examples /// Construct a HyperAdapter with the default HTTP implementation (rustls). This can be useful when you want to share a Hyper connector /// between multiple Smithy clients. /// #[cfg_attr( not(all(feature = "rustls", feature = "client-hyper")), doc = "```no_run,ignore" )] #[cfg_attr(all(feature =...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
241
300
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:8
.unwrap_or((None, None)); // if we are using Hyper, Tokio must already be enabled so we can fallback to Tokio. let connector = match connect_timeout { Some(duration) => ConnectTimeout::new( connector, sleep_impl .clone() ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
281
340
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:9
pub fn set_sleep_impl(&mut self, sleep_impl: Option<SharedAsyncSleep>) -> &mut Self { self.sleep_impl = sleep_impl; self } /// Configure the HTTP settings for the `HyperAdapter` pub fn connector_settings(mut self, connector_settings: ConnectorSettings) -> Self { self.connector_setti...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
321
380
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:10
mod timeout_middleware { use std::error::Error; use std::fmt::Formatter; use std::future::Future; use std::pin::Pin; use std::task::{Context, Poll}; use std::time::Duration; use http::Uri; use pin_project_lite::pin_project; use tower::BoxError; use aws_smithy_async::future::tim...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
361
420
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:11
/// Timeout wrapper that will timeout on the initial TCP connection /// /// # Stability /// This interface is unstable. #[derive(Clone, Debug)] pub(super) struct ConnectTimeout<I> { inner: I, timeout: Option<(SharedAsyncSleep, Duration)>, } impl<I> ConnectTimeout<I> { ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
401
460
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:13
type Output = Result<T, BoxError>; fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { let (timeout_future, kind, &mut duration) = match self.project() { MaybeTimeoutFutureProj::NoTimeout { future } => { return future.poll(cx).map_err(|err...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
481
540
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:14
MaybeTimeoutFuture::Timeout { timeout: Timeout::new(self.inner.call(req), sleep), error_type: "HTTP connect", duration: *duration, } } None => MaybeTimeoutFuture::NoTimeout { f...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
521
580
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:15
} #[cfg(test)] mod test { use crate::http_connector::ConnectorSettings; use crate::hyper_ext::Adapter; use crate::never::{NeverConnected, NeverReplies}; use aws_smithy_async::assert_elapsed; use aws_smithy_async::rt::sleep::{SharedAsyncSleep, TokioSleep}; use aws...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
561
620
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:16
.uri("http://foo.com") .body(SdkBody::empty()) .unwrap(), ) .await .unwrap_err(); assert!( resp.is_timeout(), "expected resp.is_timeout() to be true but it was false, resp == {:?}"...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
601
660
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:17
.body(SdkBody::empty()) .unwrap(), ) .await .unwrap_err(); assert!( resp.is_timeout(), "expected resp.is_timeout() to be true but it was false, resp == {:?}", resp ); ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
641
700
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:18
#[tokio::test] async fn hyper_io_error() { let connector = TestConnection { inner: HangupStream, }; let mut adapter = Adapter::builder().build(connector); use tower::Service; let err = adapter .call( http::Request::builder() ...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
681
740
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:19
} impl AsyncWrite for HangupStream { fn poll_write( self: Pin<&mut Self>, _cx: &mut Context<'_>, _buf: &[u8], ) -> Poll<Result<usize, Error>> { Poll::Pending } fn poll_flush(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Result<...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
55aa7275a4a080ca6c3b74b77d5f86d37dbb7720
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/55aa7275a4a080ca6c3b74b77d5f86d37dbb7720/sdk/aws-smithy-client/src/hyper_ext.rs
721
762
awslabs/aws-sdk-rust:sdk/aws-smithy-client/src/hyper_ext.rs:2
#![cfg_attr( not(all(feature = "rustls", feature = "client-hyper")), doc = "```no_run,ignore" )] #![cfg_attr( all( feature = "rustls", feature = "client-hyper", feature = "hyper-webpki-doctest-only" ), doc = "```no_run" )] //! use std::time::Duration; //! use aws_smithy_clien...
rust
rust
rust-source
awslabs/aws-sdk-rust
sdk/aws-smithy-client/src/hyper_ext.rs
Apache-2.0
2fcec800932fc3e127633fde6c64b3a5852d36e3
github
sdk
https://github.com/awslabs/aws-sdk-rust/blob/2fcec800932fc3e127633fde6c64b3a5852d36e3/sdk/aws-smithy-client/src/hyper_ext.rs
41
100