Module tokio_util::either

source ·
Expand description

Module defining an Either type.

Macros§

  • A small helper macro which reduces amount of boilerplate in the actual trait method implementation. It takes an invocation of method as an argument (e.g. self.poll(cx)), and redirects it to either enum variant held in self.

Enums§

  • Combines two different futures, streams, or sinks having the same associated types into a single type.