Expand description
Agnostic
agnostic
is an agnostic abstraction layer for any async runtime.
If you want a light weight crate, see agnostic-lite
.
§Introduction
An agnostic abstraction layer for any async runtime.
If you want a light weight crate, see agnostic-lite
.
§Installation
[dependencies]
agnostic = "0.7"
§License
agnostic
is under the terms of both the MIT license and the
Apache License (Version 2.0).
See LICENSE-APACHE, LICENSE-MIT for details.
Copyright (c) 2025 Al Liu.
Re-exports§
pub use agnostic_io as io;
Modules§
- async_
std async-std
async_std
runtime adapter- dns
dns
- Agnostic async DNS provider.
- net
net
- Network related traits
- process
process
- Process related traits
- quinn
quinn
- Quinn related traits
- smol
smol
smol
runtime adapter- time
- Time related traits
- tokio
tokio
tokio
runtime adapter
Macros§
- cfg_
async_ std - Macro to conditionally compile items for
async-std
feature - cfg_
linux - Macro to conditionally compile items for
linux
system - cfg_
smol - Macro to conditionally compile items for
smol
feature - cfg_
tokio - Macro to conditionally compile items for
tokio
feature - cfg_
unix - Macro to conditionally compile items for
unix
system - cfg_
windows - Macro to conditionally compile items for
windows
system
Enums§
- After
Handle Error - Error of
AfterHandle
’s output
Traits§
- After
Handle - The handle returned by the
AsyncAfterSpawner
when a after future is spawned. - Async
After Spawner - A spawner trait for spawning futures. Go’s
time.AfterFunc
equivalent. - Async
Blocking Spawner - A spawner trait for spawning blocking.
- Async
Local Spawner - A spawner trait for spawning futures.
- Async
Spawner - A spawner trait for spawning futures.
- Join
Handle - Joinhanlde trait
- Local
Join Handle - Joinhanlde trait
- Runtime
- Runtime trait
- Runtime
Lite - Runtime trait
- Yielder
- Yielder hints the runtime to execution back