[][src]Module bastion::io

IO subsystem for Bastion

Modules

executors
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.

JoinHandle

A handle that awaits the result of a task.

Proactor

Concrete proactor instance

Enums

InnerJoinHandle

Inner join handle representation to hold variants of the executors

Traits

AgnostikExecutor

This trait represents a generic executor that can spawn a future, spawn a blocking task, and wait for a future to finish.

HandleOpRegisterer

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

LocalAgnostikExecutor

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

Functions

block_on

block_on will 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

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

spawn_blocking

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

Type Definitions

AsyncOp

Submitted async IO operation type