Expand description
IO subsystem for Bastion
Modules§
- executor
- If a runtime flag is provided, the type for the specific executor will be re-exported here.
- join_
handle - Generic join handle type.
- prelude
- A prelude for the agnostik crate.
Structs§
- Agnostik
- This struct doesn’t have any functionality. It’s only use is to have a nice API to create executors for different runtimes.
- Handle
- Handle that manages IO submitted to proactor system.
- Join
Handle - A handle that awaits the result of a task.
- Proactor
- Concrete proactor instance
Enums§
- Inner
Join Handle - Inner join handle representation to hold variants of the executors
Traits§
- Agnostik
Executor - and wait for a future to finish.
- Handle
OpRegisterer - Operation registrar for Proactive IO, represents the outer ring that will send & receive submissions and completions respectively.
- Local
Agnostik Executor - This trait represents an executor that is capable of spawning futures onto the same thread.
Functions§
- block_
on block_onwill use the global executor instance, which is determined by the cargo features, to block until the given future has finished.- drive
- IO driver that drives event systems
- executor
- Returns a reference to the global executor.
- spawn
spawnwill use the global executor instance, which is determined by the cargo features, to spawn the given future.- spawn_
blocking spawn_blockingwill use the global executor instance, which is determined by the cargo features, to spawn the given blocking task.
Type Aliases§
- AsyncOp
- Submitted async IO operation type