Available on crate feature
async
only.Expand description
Future and stream utilities.
This module provides future and stream combinators that are missing from
the futures
crate.
Structs§
- DevNull
- A sink that consumes its input and sends it nowhere.
- Enqueue
- Future for the
enqueue
method. - OreCatch
Unwind - The future returned by
OreFutureExt::ore_catch_unwind
. - Spawn
IfCanceled - The future returned by
OreFutureExt::spawn_if_canceled
.
Enums§
- InTask
- Whether or not to run the future in
run_in_task_if
in a task. - Timeout
Error - The error returned by
timeout
andtimeout_at
.
Traits§
- OreFuture
Ext - Extension methods for futures.
- OreSink
Ext - Extension methods for sinks.
- OreStream
Ext - Extension methods for streams.
Functions§
- dev_
null - Constructs a sink that consumes its input and sends it nowhere.
- timeout
- Applies a maximum duration to a
Result
-returning future. - timeout_
at - Applies a deadline to a
Result
-returning future.