Trait tendril::Atomicity
[−]
[src]
pub unsafe trait Atomicity: 'static { }
The multithreadedness of a tendril.
Exactly two types implement this trait:
Atomic
: use this in your tendril and you will have aSend + Sync
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.