Module sync

Source
Expand description

Useful synchronization primitives.

Structs§

DebugReferences
Provides a Debug implementation that contains information helpful for debugging dangling references.
DynDebugReferences
Like DebugReferences, but type-erases the contained type.
MapRcNotifier
An implementation of Notifier that wraps another Notifier and applies a function on notified objects.
Mutex
A sync::Mutex assuming lock poisoning will never occur.
PrimaryRc
A primary reference.
RwLock
A sync::RwLock assuming lock poisoning will never occur.
StrongRc
A strongly-held reference.
WeakRc
A weakly-held reference.

Enums§

RemoveResourceResult
The result of removing some reference-counted resource from core.

Traits§

RcNotifier
Provides delegated notification of all strong references of a Primary being dropped.

Type Aliases§

LockGuard
Lock guard for access to a Mutex.
RemoveResourceResultWithContext
An alias for RemoveResourceResult that extracts the receiver type from the bindings context.
RwLockReadGuard
Lock guard for read access to a RwLock.
RwLockWriteGuard
Lock guard for write access to a RwLock.