Expand description
Types for single-threaded and no_std use.
Structsยง
- Async
Cell - An async primitive. Similar to a
Cell<Option<T>>
but awaitable. - Get
- Used to clone the value of a cell. Can be constructed directly or with AsyncCell::get.
- GetWeak
- A similar future to Get, but resolves to None when the cell is dropped. Can be constructed directly or with AsyncCell::get_weak.
- Guarded
Cell - A utility wrapper to set a given
AsyncCell<T>
when dropped. - Take
- Used to remove the value of a cell. Can be constructed directly or with AsyncCell::take.
- Take
Weak - A similar future to Take, but resolves to None when the cell is dropped. Can be constructed directly or with AsyncCell::take_weak.