aws_sdk_ebs/
protocol_serde.rs1pub(crate) fn type_erase_result<O, E>(
3 result: ::std::result::Result<O, E>,
4) -> ::std::result::Result<
5 ::aws_smithy_runtime_api::client::interceptors::context::Output,
6 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError<::aws_smithy_runtime_api::client::interceptors::context::Error>,
7>
8where
9 O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
10 E: ::std::error::Error + std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
11{
12 result
13 .map(|output| ::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
14 .map_err(|error| ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(error))
15 .map_err(::std::convert::Into::into)
16}
17
18pub fn parse_http_error_metadata(
19 _response_status: u16,
20 response_headers: &::aws_smithy_runtime_api::http::Headers,
21 response_body: &[u8],
22) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
23 crate::json_errors::parse_error_metadata(response_body, response_headers)
24}
25
26pub(crate) mod shape_complete_snapshot;
27
28pub(crate) mod shape_get_snapshot_block;
29
30pub(crate) mod shape_list_changed_blocks;
31
32pub(crate) mod shape_list_snapshot_blocks;
33
34pub(crate) mod shape_put_snapshot_block;
35
36pub(crate) mod shape_put_snapshot_block_input;
37
38pub(crate) mod shape_start_snapshot;
39
40pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
41 if data.is_empty() {
42 b"{}"
43 } else {
44 data
45 }
46}
47
48pub(crate) mod shape_access_denied_exception;
49
50pub(crate) mod shape_concurrent_limit_exceeded_exception;
51
52pub(crate) mod shape_conflict_exception;
53
54pub(crate) mod shape_get_snapshot_block_output;
55
56pub(crate) mod shape_internal_server_exception;
57
58pub(crate) mod shape_put_snapshot_block_output;
59
60pub(crate) mod shape_request_throttled_exception;
61
62pub(crate) mod shape_resource_not_found_exception;
63
64pub(crate) mod shape_service_quota_exceeded_exception;
65
66pub(crate) mod shape_start_snapshot_input;
67
68pub(crate) mod shape_validation_exception;
69
70pub(crate) mod shape_blocks;
71
72pub(crate) mod shape_changed_blocks;
73
74pub(crate) mod shape_tag;
75
76pub(crate) mod shape_tags;
77
78pub(crate) mod shape_block;
79
80pub(crate) mod shape_changed_block;