We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 905d0a0 commit 77a60d4Copy full SHA for 77a60d4
src/concurrency/send-sync.md
@@ -7,5 +7,16 @@ How does Rust know to forbid shared access across thread? The answer is in two t
7
* [`Sync`][2]: a type `T` is `Sync` if it is safe to move a `&T` across a thread
8
boundary.
9
10
+Both traits are not to be implemented. They are implemented automatically when
11
+the compiler determines it’s appropriate.
12
+
13
[1]: https://doc.rust-lang.org/std/marker/trait.Send.html
14
[2]: https://doc.rust-lang.org/std/marker/trait.Sync.html
15
16
+<details>
17
18
+* One can think of these traits as markers that the type has certain
19
+ thread-safety properties.
20
+* They can be used in the generic constraints as normal traits.
21
22
+</details>
0 commit comments