aws_sdk_s3/client/customize/
internal.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub type BoxFuture<T> = ::std::pin::Pin<::std::boxed::Box<dyn ::std::future::Future<Output = T> + ::std::marker::Send>>;
3
4pub type SendResult<T, E> =
5    ::std::result::Result<T, ::aws_smithy_runtime_api::client::result::SdkError<E, ::aws_smithy_runtime_api::client::orchestrator::HttpResponse>>;
6
7pub trait CustomizableSend<T, E>: ::std::marker::Send + ::std::marker::Sync {
8    // Takes an owned `self` as the implementation will internally call methods that take `self`.
9    // If it took `&self`, that would make this trait object safe, but some implementing types do not
10    // derive `Clone`, unable to yield `self` from `&self`.
11    fn send(self, config_override: crate::config::Builder) -> BoxFuture<SendResult<T, E>>;
12}
13
14pub trait CustomizablePresigned<E>: ::std::marker::Send + ::std::marker::Sync {
15    fn presign(
16        self,
17        config_override: crate::config::Builder,
18        presigning_config: crate::presigning::PresigningConfig,
19    ) -> BoxFuture<SendResult<crate::presigning::PresignedRequest, E>>;
20}