Crate concurrency_traits[−][src]
Traits for concurrent primitives.
Structs
AsyncCustomDoubleEndedQueue | A custom async double ended queue for turing a double ended queue asynchronous. Creates a task for running the queue functions. |
AsyncCustomPrependQueue | A custom async prepend queue for turing a prepend queue asynchronous. Creates a task for running the queue functions. |
AsyncCustomQueue | A custom async queue for turing a queue asynchronous. Creates a task for running the queue functions. |
AsyncCustomReverseQueue | A custom async reverse queue for turing a reverse queue asynchronous. Creates a task for running the queue functions. |
CustomMutex | A Mutex based on a given |
CustomMutexGuard | A guard for a |
CustomReadGuard | The read guard for |
CustomRwLock | A custom rw lock that can be built from any |
CustomWriteGuard | The write guard for |
PopBackOperation | A pop back operation. Synonymous with |
PopOperation | A pop operation. Synonymous with |
PushFrontOperation | A push front operation. Synonymous with |
PushOperation | A push operation. Synonymous with |
RawCustomAsyncMutex | A converter for turning a |
StdThreadFunctions | Std implementations for |
Enums
AsyncQueueMessage | An internal message for the async custom queues |
RawCustomAsyncMutexMessage | The message used for |
ReadOperation | An operation that adds to the queue |
WriteOperation | An operation that adds to the queue |
Traits
AsyncDoubleEndedQueue | An async queue that can be written and read from both ends |
AsyncMutex | A generic async mutex trait |
AsyncMutexSized | The functions for |
AsyncPeekQueue | An async queue that can be peeked into |
AsyncPeekReverseQueue | A queue that can be peeked from behind asynchronously |
AsyncPrependQueue | An async queue that can be prepended (items placed in front) |
AsyncQueue | A Queue that can be accessed asynchronously |
AsyncReverseQueue | An asynchronous queue that can be read in reverse |
AsyncRwLock | A generic async reader-writer lock trait |
AsyncRwLockSized | The functions for |
AsyncStack | A stack with async operations |
AsyncTimeoutMutex | An async mutex that locking can timeout on. |
AsyncTimeoutMutexSized | The functions for |
AsyncTimeoutQueue | An Async Queue that can timeout on push and pop operations |
AsyncTimeoutRwLock | An async RwLock that can be timed out on |
AsyncTimeoutRwLockSized | The functions for |
AsyncUpgradeReadGuard | A read guard that can be upgraded to a write guard asynchronously |
AsyncUpgradeRwLock | An async rwlock that has read guards that can be upgraded asynchronously |
ConcurrentSystem | A full concurrent system with all functions accessible by reference. This Trait should be implemented where possible. |
DoubleEndedQueue | A queue that can be written and read from both ends |
JoinableHandle | A handle to a spawned thread that can be joined infallibly. Auto-implemented with |
Mutex | A Generic Mutex trait |
MutexSized | The functions for |
PeekQueue | A queue that can be peeked into |
PeekReverseQueue | A queue that can be peeked from behind |
PrependQueue | A queue that can be prepended (items placed in front) |
Queue | A generic queue that can push and pop in FIFO order |
RawAsyncMutex | A raw async mutex that hold no data but the lock itself. |
RawAsyncRwLock | A raw async rw lock that stores no data |
RawAsyncTimeoutMutex | A raw async mutex that can be timed out and holds no data. |
RawAsyncTimeoutRwLock | A raw async timeout rw lock that stores no data |
RawMutex | A raw mutex that hold no data but the lock itself. |
RawRwLock | A raw rw lock that stores no data |
RawTimeoutMutex | A raw mutex that can be timed out and holds no data. |
RawTimeoutRwLock | A raw timeout rw lock that stores no data |
RawTryMutex | A raw mutex that can be tried and holds no data. |
RawTryRwLock | A raw try rw lock that stores no data |
ResultThreadSpawner | Named version of |
ReverseQueue | A queue that can be read in reverse. |
RwLock | A generic blocking reader-writer lock trait |
RwLockSized | The functions for |
Stack | A stack with pop and push |
ThreadFunctions | Functions to allow the current thread to interact in ways a thread might need to. |
ThreadHandle | A handle to a spawned thread. Analog for |
ThreadParker | Functions to allow parking functionality for threads. |
ThreadSpawner | Same as a |
ThreadTimeoutParker | Functions to allow parking functionality with timeout for threads. |
TimeFunctions | Functions to interact with system time. |
TimeoutMutex | A mutex that can timeout for locking |
TimeoutMutexSized | The functions for |
TimeoutQueue | A Queue that can timeout on push and pop operations |
TimeoutRwLock | An RwLock that can be timed out on |
TimeoutRwLockSized | The functions for |
TryDoubleEndedQueue | A queue that can try to be written and read from both ends |
TryJoinableHandle | A handle to a spawned thread that can be joined, blocking the current thread until the target is finished. Analog for |
TryMutex | A non-blocking mutex with try functions. |
TryMutexSized | The functions for |
TryPeekQueue | A queue that can try to be peeked into |
TryPeekReverseQueue | A queue that can try to be peeked from behind |
TryPrependQueue | A queue that can be attempt to be prepended to |
TryQueue | A generic queue that supports try operations |
TryResultThreadSpawner | Named version of |
TryReverseQueue | A queue that can try to be read in reverse. |
TryRwLock | A non-blocking rwlock with try functions |
TryRwLockSized | The functions for |
TryStack | A Stack with try operations |
TryThreadSpawner | Functions to spawn new threads. If infallibility is required look to |
UpgradeReadGuard | A read guard that can be upgraded to a write guard |
UpgradeRwLock | An rwlock that has read guards that can be upgraded |