Trait tendril::Atomicity

source ·
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 a Send tendril which works across threads; this is akin to Arc.

  • NonAtomic: use this in your tendril and you will have a tendril which is neither Send nor Sync but should be a tad faster; this is akin to Rc.

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.

Implementors§