logo

Module bastion::io[][src]

Expand description

IO subsystem for Bastion

Modules

If a runtime flag is provided, the type for the specific executor will be re-exported here.

Generic join handle type.

A prelude for the agnostik crate.

Structs

This struct doesn’t have any functionality. It’s only use is to have a nice API to create executors for different runtimes.

Handle that manages IO submitted to proactor system.

A handle that awaits the result of a task.

Concrete proactor instance

Enums

Inner join handle representation to hold variants of the executors

Traits

and wait for a future to finish.

Operation registrar for Proactive IO, represents the outer ring that will send & receive submissions and completions respectively.

This trait represents an executor that is capable of spawning futures onto the same thread.

Functions

block_on will use the global executor instance, which is determined by the cargo features, to block until the given future has finished.

IO driver that drives event systems

Returns a reference to the global executor.

spawn will use the global executor instance, which is determined by the cargo features, to spawn the given future.

spawn_blocking will use the global executor instance, which is determined by the cargo features, to spawn the given blocking task.

Type Definitions

Submitted async IO operation type