You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -29,22 +29,22 @@ The main shared concepts of `azure_core` (and so Azure SDK libraries using `azur
29
29
30
30
### Thread safety
31
31
32
-
We guarantee that all client instance methods are thread-safe and independent of each other ([guideline](https://azure.github.io/azure-sdk/rust_introduction.html)). This ensures that the recommendation of reusing client instances is always safe, even across threads.
32
+
We guarantee that all client instance methods are thread-safe and independent of each other ([guidelines]). This ensures that the recommendation of reusing client instances is always safe, even across threads.
[Consuming Service Methods Returning `Pager<T>`](#consuming-service-methods-returning-pagert)
40
-
41
41
<!-- CLIENT COMMON BAR -->
42
42
43
43
## Examples
44
44
45
-
**NOTE:** Samples in this file apply only to packages that follow [Azure SDK Design Guidelines](https://azure.github.io/azure-sdk/rust_introduction.html). Names of such packages usually start with `azure_`.
45
+
**NOTE:** Samples in this file apply only to packages that follow [Azure SDK Design Guidelines][guidelines]. Names of such packages typically start with `azure_`.
46
46
47
-
### Configuring Service Clients Using`ClientOptions`
47
+
### Configuring service clients using`ClientOptions`
48
48
49
49
Azure SDK client libraries typically expose one or more _service client_ types that
50
50
are the main starting points for calling corresponding Azure services.
@@ -63,12 +63,13 @@ use azure_security_keyvault_secrets::{SecretClient, SecretClientOptions};
_Service clients_ have methods that can be used to call Azure services. We refer to these client methods as _service methods_.
85
-
_Service methods_ return a shared `azure_core` type `Response<T>`(in rare cases its non-generic sibling, a raw `Response`).
86
+
_Service methods_ return a shared `azure_core` type `Response<T>`where `T` is either a `Model` type or a `ResponseBody` representing a raw stream of bytes.
86
87
This type provides access to both the deserialized result of the service call, and to the details of the HTTP response returned from the server.
When a service call fails, the returned `Result` will contain an `Error`. The `Error` type provides a status property with an HTTP status code and an error_code property with a service-specific error code.
println!("Secret not found, but no error code provided.");
156
157
}
157
158
},
158
-
_=>println!("An error occurred: {:?}", e),
159
+
_=>println!("An error occurred: {e:?}"),
159
160
},
160
161
}
161
-
162
+
162
163
Ok(())
163
164
}
164
165
```
165
166
166
-
### Consuming Service Methods Returning`Pager<T>`
167
+
### Consuming service methods returning`Pager<T>`
167
168
168
-
If a service call returns multiple values in pages, it would return `Result<Pager<T>>` as a result. You can iterate over `AsyncPageable` directly or in pages.
169
+
If a service call returns multiple values in pages, it would return `Result<Pager<T>>` as a result. You can iterator over each page's vector of results.
0 commit comments