Module prelude
Source - Cancellable
- A cancellable handle that can be used to cancel a spawned future
- Duration
- A
Duration type to represent a span of time, typically used for system
timeouts. - Rc
- A single-threaded reference-counting pointer. ‘Rc’ stands for ‘Reference
Counted’.
- RefCell
- A mutable memory location with dynamically checked borrow rules
- Runtime
- Weak
Weak is a version of Rc that holds a non-owning reference to the
managed allocation.
- Component
- run
- Runs the platform-specific event loop with the given entry component.
- sleep
- Creates a new
Sleep that will complete after the specified duration.
- component