Module tokio_by_hand::common [] [src]

Common types used all over the place

Reexports

pub use futures::prelude::*;

Modules

fmt

Utilities for formatting and printing Strings

io

Traits, helpers, and type definitions for core I/O functionality.

task

Tasks used to drive a future computation

thread

Native threads.

Structs

Arc

A thread-safe reference-counting pointer. 'Arc' stands for 'Atomically Reference Counted'.

AtomicBool

A boolean type which can be safely shared between threads.

Core

An event loop.

Duration

A Duration type to represent a span of time, typically used for system timeouts.

HashSet

A hash set implemented as a HashMap where the value is ().

Instant

A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.

RefCell

A mutable memory location with dynamically checked borrow rules

Task

A handle to a "task", which represents a single lightweight "thread" of execution driving a future to completion.

VecDeque

A double-ended queue implemented with a growable ring buffer.

Enums

Ordering

Atomic memory orderings

Void

The empty type for cases which can't occur.

Functions

random

Generates a random value using the thread-local random number generator.