Struct conch_runtime::env::PlatformSpecificAsyncIoEnv [] [src]

pub struct PlatformSpecificAsyncIoEnv { /* fields omitted */ }

A platform specific environment efficiently using a tokio event loop, if the current platform supports efficient async IO, or a ThreadPoolAsyncIoEnv otherwise.

Methods

impl PlatformSpecificAsyncIoEnv
[src]

[src]

Creates a new platform specific environment using a tokio event loop, if such an environment is supported on the current platform.

Otherwise, we will fall back to to a ThreadPoolAsyncIoEnv with the specified number of threads. If None is specified, we'll use one thread per CPU.

Trait Implementations

impl Debug for PlatformSpecificAsyncIoEnv
[src]

[src]

Formats the value using the given formatter.

impl Clone for PlatformSpecificAsyncIoEnv
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl SubEnvironment for PlatformSpecificAsyncIoEnv
[src]

[src]

Create a new sub-environment, which starts out idential to its parent, but any changes on the new environment will not be reflected on the parent. Read more

impl AsyncIoEnvironment for PlatformSpecificAsyncIoEnv
[src]

An async/futures-aware Read adapter around a FileDesc.

An future that represents writing data into a FileDesc.

[src]

Creates a futures-aware adapter to read data from a FileDesc asynchronously.

[src]

Creates a future for writing data into a FileDesc.

[src]

Asynchronously write the contents of data to a FileDesc in the background on a best effort basis (e.g. the implementation can give up due to any (appropriately) unforceen errors like broken pipes). Read more