pub struct Atomic(AtomicUsize);
Expand description
A marker of an atomic (and hence concurrent) tendril.
This is used as the second, optional type parameter of a Tendril
;
Tendril<F, Atomic>
thus implementsSend
.
This is akin to using Arc
for reference counting.
Tuple Fields§
§0: AtomicUsize
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Atomic
impl Send for Atomic
impl Sync for Atomic
impl Unpin for Atomic
impl UnwindSafe for Atomic
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more