Trait std::marker::Send1.0.0[][src]

pub unsafe auto trait Send { }

Types that can be transferred across thread boundaries.

This trait is automatically implemented when the compiler determines it's appropriate.

An example of a non-Send type is the reference-counting pointer rc::Rc. If two threads attempt to clone Rcs that point to the same reference-counted value, they might try to update the reference count at the same time, which is undefined behavior because Rc doesn't use atomic operations. Its cousin sync::Arc does use atomic operations (incurring some overhead) and thus is Send.

See the Nomicon for more details.

Implementations on Foreign Types

impl Send for Argument

impl Send for FormatSpec

impl Send for Alignment

impl Send for Count

impl Send for Position

impl Send for float64x2_t

impl Send for int32x2_t

impl Send for int32x4_t

impl Send for poly8x8_t

impl Send for float64x1_t

impl Send for uint8x8_t

impl Send for poly16x4_t

impl Send for int64x1_t

impl Send for poly8x16_t

impl Send for int64x2_t

impl Send for uint8x16_t

impl Send for uint32x4_t

impl Send for int8x8_t

impl Send for int16x8_t

impl Send for poly16x8_t

impl Send for uint64x2_t

impl Send for uint16x4_t

impl Send for float32x2_t

impl Send for uint64x1_t

impl Send for int8x16_t

impl Send for uint16x8_t

impl Send for float32x4_t

impl Send for uint32x2_t

impl Send for int16x4_t

Implementors

Auto implementors