or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
AFIT Case Study: AWS SDK
https://docs.rs/aws-credential-types/0.54.1/aws_credential_types/provider/trait.ProvideCredentials.html
https://docs.rs/aws-smithy-async/0.54.3/aws_smithy_async/rt/sleep/trait.AsyncSleep.html
https://docs.rs/aws-config/0.54.1/aws_config/meta/region/trait.ProvideRegion.html
Question this doc answers: what features do we need to meet the needs of AWS SDK from async traits? What works well, what can we workaround, and where are the gaps relative to the current state on nightly.
TL;DR
Where would AWS SDK like to use async traits, and how do they solve it today?
Cover
ProvideCredentials
List other examples and say they are similar, and so we ignore them.
How would this work with async traits as proposed?
From a client's perspective
How it's implemented
Dyn dispatch as first-class feature
Variant: with async syntax
Provide Credentials
Trait for creating custom credential providers; anything that gives AWS credentials, could be from disk, but also from servers. These are async because they may make HTTP requests and so forth under the hood.
Today
In the library:
In user's code:
related PR: https://github.com/awslabs/smithy-rs/pull/1359
then later
SdkConfig
Future
https://docs.rs/aws-smithy-async/0.54.3/aws_smithy_async/rt/sleep/trait.AsyncSleep.html
https://docs.rs/aws-config/0.54.1/aws_config/meta/region/trait.ProvideRegion.html
is similar
https://docs.rs/aws-smithy-http/0.33.1/aws_smithy_http/body/struct.SdkBody.html
https://docs.rs/http-body/0.4.5/http_body/trait.Body.html
https://docs.rs/aws-smithy-http/latest/src/aws_smithy_http/byte_stream.rs.html#441
want private impls
currently workaround with this
Inner
type so that other people can't rely on having implemented thinusing stream in public API for event streams
https://docs.rs/aws-smithy-http/latest/src/aws_smithy_http/byte_stream.rs.html#541
https://docs.rs/aws-smithy-http/latest/aws_smithy_http/event_stream/struct.EventStreamSender.html#impl-From<S>-for-EventStreamSender<T,+E>
https://docs.rs/aws-sdk-s3/0.24.0/aws_sdk_s3/paginator/struct.ListObjectsV2Paginator.html#method.send
ff
other relevant features