mirror of https://github.com/rust-lang/async-book
parent
ed022fc51a
commit
33b26b1276
|
@ -60,7 +60,7 @@ real `Future` trait and how it is different.
|
|||
{{#include ../../examples/02_02_future_trait/src/lib.rs:real_future}}
|
||||
```
|
||||
|
||||
The first change you'll notice is that our `self` type is no longer `&mut Self`,
|
||||
The first change you'll notice is that our `self` type is no longer `&mut self`,
|
||||
but has changed to `Pin<&mut Self>`. We'll talk more about pinning in [a later
|
||||
section][pinning], but for now know that it allows us to create futures that
|
||||
are immovable. Immovable objects can store pointers between their fields,
|
||||
|
|
Loading…
Reference in New Issue