Skip to main content

Module option

Module option 

Source
Expand description

Asynchronous mapping adapters for optional values.

OptionExt turns an optional value into an optional future, a fallible future of an option, or a zero-or-one stream. The mapping closure runs only when the option contains a value.

Re-exportsยง

use futures::FutureExt; ๐Ÿ”’
use futures::Stream; ๐Ÿ”’
use futures::future::OptionFuture; ๐Ÿ”’
use super::IterStream; ๐Ÿ”’

Traitsยง

OptionExt
Extends Option with asynchronous mapping adapters.