Crate orengine

Source

Re-exports§

pub use local::Local;
pub use runtime::asyncify;
pub use runtime::local_executor;
pub use runtime::stop_all_executors;
pub use runtime::stop_executor;
pub use runtime::Executor;
pub use sleep::sleep;
pub use yield_now::yield_now;
pub use socket2;
pub use run::*;

Modules§

fs
The fs module provides asynchronous file system operations.
io
This module contains async io operations, utils for working with them and structs for working with them.
local
local_pool
net
run
runtime
sleep
sync
sync_task_queue
test
This module contains utilities for testing such as
utils
yield_now

Macros§

asyncify
Create a new Asyncify from the given function.
check_task_local_safety
In debug mode checks if the Task is safe to be executed.
each_addr
each_addr is a macro that will iterate over the addresses in addrs and call f for each one before first successful connection or the last address.
each_addr_sync
each_addr_sync is a macro that will iterate over the addresses in addrs and call f for each one before first successful connection or the last address.
get_task_from_context
Returns a Task from a Context.
new_local_pool
This macro creates a new thread local pool. Because it is thread local it is lockless.
panic_if_local_in_future
Gets the Task from the context and panics if it is local.
write_err
shortcut for unsafe { $ptr.write(Err($err)) }
write_ok
shortcut for unsafe { $ptr.write(Ok($res)) }