[][src]Module samotop_core::common

Modules

future

Asynchronous values.

stream

Asynchronous streams.

Macros

ready

Extracts the successful type of a Poll<T>.

Structs

Arc

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

Context

The Context of an asynchronous task.

Pending

Creates a future which never resolves, representing a computation that never finishes.

Pin

A pinned pointer.

PollFn

A Future that wraps a function returning Poll.

Ready

Creates a future that is immediately ready with a value.

Enums

Poll

Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.

Traits

BufRead

Read bytes asynchronously.

IntoFutureExperimental

Conversion into a Future.

Future

A future represents an asynchronous computation.

FutureExt

An extension trait for Futures that provides a variety of convenient adapters.

Read

Read bytes asynchronously.

ReadExt

An extension trait which adds utility methods to AsyncRead types.

Stream

A stream of values produced asynchronously.

StreamExt

An extension trait for Streams that provides a variety of convenient combinator functions.

TryFutureExt

Adapters specific to Result-returning futures

Write

Write bytes asynchronously.

WriteExt

An extension trait which adds utility methods to AsyncWrite types.

Functions

pending

Creates a future which never resolves, representing a computation that never finishes.

poll_fn

TODO: Remove when poll_fn() is stabilized in std

ready

Type Definitions

BoxFuture

An owned dynamically typed Future for use in cases where you can't statically type your result or need to add some indirection.

Error
Result
S2Fut
S3Fut
SendFut

Attribute Macros

pin_project

An attribute that creates projection types covering all the fields of struct or enum.