devela

Module work

Source
Expand description

Work management, concurrency handling.
work

Extends: std::{future, process, sync, task, thread}


Macros§

Structs§

  • Arcalloc
    alloc A thread-safe reference-counting pointer.
  • ArcWeakalloc
    alloc A version of Arc that holds a non-owning reference to the managed allocation.
  • Atomicdep_atomic
    ⚛️ atomic A generic atomic wrapper type.
  • ⚛️ ?core A boolean type which can be safely shared between threads.
  • AtomicF32dep_portable_atomic
    ⚛️ portable-atomic A floating point type which can be safely shared between threads.
  • AtomicF64dep_portable_atomic
    ⚛️ portable-atomic A floating point type which can be safely shared between threads.
  • ⚛️ ?core A signed integer type which can be safely shared between threads.
  • ⚛️ ?core A signed integer type which can be safely shared between threads.
  • ⚛️ ?core A signed integer type which can be safely shared between threads.
  • ⚛️ ?core A signed integer type which can be safely shared between threads.
  • AtomicI128dep_portable_atomic
    ⚛️ portable-atomic A signed integer type which can be safely shared between threads.
  • ⚛️ ?core A signed integer type which can be safely shared between threads.
  • ⚛️ ?core A raw pointer type which can be safely shared between threads.
  • ⚛️ ?core An unsigned integer type which can be safely shared between threads.
  • ⚛️ ?core An unsigned integer type which can be safely shared between threads.
  • ⚛️ ?core An unsigned integer type which can be safely shared between threads.
  • ⚛️ ?core An unsigned integer type which can be safely shared between threads.
  • AtomicU128dep_portable_atomic
    ⚛️ portable-atomic An unsigned integer type which can be safely shared between threads.
  • ⚛️ ?core An unsigned integer type which can be safely shared between threads.
  • std Enables multiple threads to synchronize the beginning of some computation.
  • std Returned by Barrier::wait() when all threads in the Barrier have rendezvoused.
  • std A Condition Variable
  • Corounsafe_async
    Represents a single thread stackless coroutine.
  • CoroRununsafe_async and alloc
    A managed dynamic collection of single-thread Coroutines.
  • CoroYieldunsafe_async
    A future that alternates between Ready and Pending status each time it’s polled.
  • core A future which never resolves, representing a computation that never finishes.
  • core A Future that wraps a function returning TaskPoll.
  • core A future that is immediately ready with a value.
  • std A mutual exclusion primitive useful for protecting shared data
  • std An RAII implementation of a “scoped lock” of a mutex.
  • Oncestd
    std A synchronization primitive which can be used to run a one-time global initialization.
  • std A synchronization primitive which can be written to only once.
  • std State yielded to Once::call_once_force()’s closure parameter.
  • 🚩 std A type of error which can be returned whenever a lock is acquired.
  • std A reader-writer lock
  • std RAII structure used to release the shared read access of a lock when dropped.
  • std RAII structure used to release the exclusive write access of a lock when dropped.
  • core The context of an asynchronous task.
  • core Allows the implementor of a task executor to create a TaskWaker.
  • core A virtual function pointer table that specifies the behavior of a TaskRawWaker.
  • core A handle for waking up a task by notifying its executor that it is ready to be run.
  • std A handle to a thread.
  • std An error returned by ThreadLocalKey::try_with.
  • std Thread factory, which can be used in order to configure the properties of a new thread.
  • std A unique identifier for a running thread.
  • std An owned permission to join on a thread (block on its termination).
  • std A thread local storage key which owns its contents.
  • std A scope to spawn scoped threads in.
  • std An owned permission to join on a scoped thread (block on its termination).
  • std A type indicating whether a timed wait on a condition variable returned due to a time out or not.

Enums§

Traits§

  • Extension trait providing additional methods for Futures.
  • Extension trait providing additional methods for Threads.
  • core An asynchronous computation obtained by use of async.
  • core Conversion into a Future.
  • alloc The implementation of waking a task on an executor.
  • CoroutineExperimentalnightly_coro
    core The trait implemented by builtin coroutine types.

Functions§

Type Aliases§

  • std A type alias for the result of a lock method which can be poisoned.
  • ⚖️ std A specialized Result type for threads.
  • ⚖️ std A type alias for the result of a nonblocking locking method.