[][src]Function s3_algo::s3_single_request

pub async fn s3_single_request<F, G, R>(
    future_factory: F,
    size: Option<u64>
) -> Result<(RequestReport, R), Error> where
    F: Fn() -> G + Unpin + Clone + Send + Sync + 'static,
    G: Future<Output = Result<R, Error>> + Send

Issue a single S3 request, with retries and appropriate timeouts using sane defaults. Basically an easier, less general version of s3_request. size should be given if the operation is on a file with a certain size. This is necessary in order to set a suitable timeout to the request. For example, copy or put operations are linear in the size of the files operated on.