pub unsafe trait Atomicity: 'static { }
Expand description
The multithreadedness of a tendril.
Exactly two types implement this trait:
-
Atomic
: use this in your tendril and you will have aSend
tendril which works across threads; this is akin toArc
. -
NonAtomic
: use this in your tendril and you will have a tendril which is neitherSend
norSync
but should be a tad faster; this is akin toRc
.
The layout of this trait is also mandated to be that of a usize
,
for it is used for reference counting.
Object Safety§
This trait is not object safe.