Skip to main content

Crate moduvex_runtime

Crate moduvex_runtime 

Source
Expand description

moduvex-runtime — Custom async runtime for the Moduvex framework.

Provides a cross-platform async runtime with:

  • Platform-native I/O (epoll, kqueue, IOCP)
  • Hybrid threading (thread-per-core default, opt-in work-stealing)
  • Hierarchical timer wheel
  • Async networking (TCP/UDP)
  • Synchronization primitives (mpsc, oneshot, mutex)
  • Signal handling
  • Task-local storage

Re-exports§

pub use executor::task::JoinError;
pub use executor::task::JoinHandle;
pub use executor::task_local::AccessError;
pub use executor::task_local::TaskLocal;
pub use runtime::Runtime;
pub use runtime::RuntimeBuilder;
pub use net::AsyncRead;
pub use net::AsyncWrite;
pub use net::TcpListener;
pub use net::TcpStream;
pub use net::UdpSocket;
pub use sync::Mutex;
pub use sync::MutexGuard;

Modules§

executor
Single-threaded async executor with work-stealing extension points.
net
Async networking: TCP listener, TCP stream, UDP socket.
platform
Platform abstraction layer.
reactor
Reactor — I/O readiness event loop.
runtime
Runtime builder and handle.
signal
Signal handling for async tasks.
sync
Synchronisation primitives for async tasks.
time
Async timer primitives: [sleep], sleep_until, [interval].

Macros§

task_local
Declare a task-local key.

Functions§

block_on
Drive future to completion on the current thread, returning its output.
block_on_with_spawn
Drive future to completion, with spawn available inside the context.
interval
Create a periodic interval timer.
sleep
Sleep for the given duration.
spawn
Spawn a future onto the current thread’s executor.