Module ntex::rt

source ·
Expand description

A runtime implementation that runs everything on the current thread.

Modules§

Structs§

  • Arbiters provide an asynchronous execution environment for actors, functions and futures. When an Arbiter is created, it spawns a new OS thread, and hosts an event loop. Some Arbiter functions execute on the current thread.
  • Builder struct for a ntex runtime.
  • Interface object to underlying io stream
  • Task failed to execute to completion.
  • An owned permission to join on a task (await its termination).
  • System is a runtime manager.
  • Helper object that runs System’s event loop

Functions§

  • Runs the provided future, blocking the current thread until the future completes.
  • Convert std TcpStream to tokio’s TcpStream
  • Convert std UnixStream to tokio’s UnixStream
  • Spawn a future on the current thread. This does not create a new Arbiter or Arbiter address, it is simply a helper for spawning futures on the current thread.
  • Runs the provided closure on a thread where blocking is acceptable.
  • Safety
  • Executes a future on the current thread. This does not create a new Arbiter or Arbiter address, it is simply a helper for executing futures on the current thread.
  • Opens a TCP connection to a remote host.
  • Opens a TCP connection to a remote host and use specified memory pool.
  • Opens a unix stream connection.
  • Opens a unix stream connection and specified memory pool.