@@ -20,12 +20,12 @@ you can find the [package on crates.io][Package (crates.io)].
2020
2121The main shared concepts of ` azure_core ` - and Azure SDK libraries using ` azure_core ` - include:
2222
23- - Configuring service clients, e.g. configuring retries, logging (` ClientOptions ` ).
24- - Accessing HTTP response details (` Response<T> ` ).
25- - Paging and asynchronous streams (` Pager<T> ` ).
26- - Errors from service requests in a consistent fashion. (` azure_core::Error ` ).
27- - Customizing requests (` ClientOptions ` ).
28- - Abstractions for representing Azure SDK credentials. (` TokenCredentials ` ).
23+ - Configuring service clients, e.g. configuring retries, logging (` ClientOptions ` ).
24+ - Accessing HTTP response details (` Response<T> ` ).
25+ - Paging and asynchronous streams (` Pager<T> ` ).
26+ - Errors from service requests in a consistent fashion. (` azure_core::Error ` ).
27+ - Customizing requests (` ClientOptions ` ).
28+ - Abstractions for representing Azure SDK credentials. (` TokenCredentials ` ).
2929
3030### Thread safety
3131
@@ -44,15 +44,15 @@ We guarantee that all client instance methods are thread-safe and independent of
4444
4545## Features
4646
47- - ` debug ` : enables extra information for developers e.g., emitting all fields in ` std::fmt::Debug ` implementation.
48- - ` hmac_openssl ` : configures HMAC using ` openssl ` .
49- - ` hmac_rust ` : configures HMAC using pure Rust.
50- - ` reqwest ` (default): enables and sets ` reqwest ` as the default ` HttpClient ` . Enables ` reqwest ` 's ` native-tls ` feature.
51- - ` reqwest_deflate ` (default): enables deflate compression for ` reqwest ` .
52- - ` reqwest_gzip ` (default): enables gzip compression for ` reqwest ` .
53- - ` reqwest_rustls ` : enables ` reqwest ` 's ` rustls-tls-native-roots-no-provider ` feature,
54- - ` tokio ` : enables and sets ` tokio ` as the default async runtime.
55- - ` xml ` : enables XML support.
47+ - ` debug ` : enables extra information for developers e.g., emitting all fields in ` std::fmt::Debug ` implementation.
48+ - ` hmac_openssl ` : configures HMAC using ` openssl ` .
49+ - ` hmac_rust ` : configures HMAC using pure Rust.
50+ - ` reqwest ` (default): enables and sets ` reqwest ` as the default ` HttpClient ` . Enables ` reqwest ` 's ` native-tls ` feature.
51+ - ` reqwest_deflate ` (default): enables deflate compression for ` reqwest ` .
52+ - ` reqwest_gzip ` (default): enables gzip compression for ` reqwest ` .
53+ - ` reqwest_rustls ` : enables ` reqwest ` 's ` rustls-tls-native-roots-no-provider ` feature,
54+ - ` tokio ` : enables and sets ` tokio ` as the default async runtime.
55+ - ` xml ` : enables XML support.
5656
5757## Examples
5858
@@ -255,8 +255,9 @@ If your application uses a different asynchronous runtime, you can replace the a
255255You provide the implementation by calling the ` set_async_runtime() ` API:
256256
257257``` rust no_run
258- use azure_core :: async_runtime :: {
259- set_async_runtime, AsyncRuntime , TaskFuture , SpawnedTask };
258+ use azure_core :: {async_runtime :: {
259+ set_async_runtime, AsyncRuntime , TaskFuture , SpawnedTask },
260+ time :: Duration };
260261use std :: sync :: Arc ;
261262use futures :: FutureExt ;
262263
@@ -266,7 +267,7 @@ impl AsyncRuntime for CustomRuntime {
266267 fn spawn (& self , f : TaskFuture ) -> SpawnedTask {
267268 unimplemented! (" Custom spawn not implemented" );
268269 }
269- fn sleep (& self , duration : std :: time :: Duration ) -> TaskFuture {
270+ fn sleep (& self , duration : Duration ) -> TaskFuture {
270271 unimplemented! (" Custom sleep not implemented" );
271272 }
272273 }
0 commit comments