Trait cretonne::prelude::codegen::entity::__core::prelude::v1::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<'a, T> !Send for RwLockWriteGuard<'a, T> where
    T: ?Sized
[src]

impl<T> Send for Sender<T> where
    T: Send
[src]

impl<T> Send for Mutex<T> where
    T: Send + ?Sized
[src]

impl<T> Send for RwLock<T> where
    T: Send + ?Sized
[src]

impl<'a, T> !Send for MutexGuard<'a, T> where
    T: ?Sized
[src]

impl !Send for Select
[src]

impl !Send for Args
[src]

impl<T> Send for Receiver<T> where
    T: Send
[src]

impl<T> Send for SyncSender<T> where
    T: Send
[src]

impl !Send for ArgsOs
[src]

impl Send for Once
[src]

impl<'a, T> !Send for RwLockReadGuard<'a, T> where
    T: ?Sized
[src]

impl<'a, T> Send for &'a mut T where
    T: Send + ?Sized
[src]

impl<'a, T> Send for &'a T where
    T: Sync + ?Sized
[src]

impl<T> !Send for *const T where
    T: ?Sized
[src]

impl<T> !Send for *mut T where
    T: ?Sized
[src]

impl<'a, T> Send for Drain<'a, T> where
    T: Send
[src]

impl<T> Send for Weak<T> where
    T: Send + Sync + ?Sized
[src]

impl<T> !Send for Weak<T> where
    T: ?Sized
[src]

impl<T> Send for IntoIter<T> where
    T: Send
[src]

impl<T> Send for Arc<T> where
    T: Send + Sync + ?Sized
[src]

impl<'a, T> Send for Iter<'a, T> where
    T: Sync
[src]

impl<'a, T> Send for IterMut<'a, T> where
    T: Send
[src]

impl<'a> Send for Drain<'a>
[src]

impl<T> !Send for Rc<T> where
    T: ?Sized
[src]

impl<'a, T> Send for Drain<'a, T> where
    T: Send
[src]

impl<T> Send for LinkedList<T> where
    T: Send
[src]

impl Send for isize

impl Send for i8

impl Send for i16

impl Send for i32

impl Send for i64

impl Send for i128

impl Send for usize

impl Send for u8

impl Send for u16

impl Send for u32

impl Send for u64

impl Send for u128

impl Send for f32

impl Send for f64

impl Send for f32

impl Send for f64

impl Send for char

impl Send for str

impl Send for str

impl Send for Decoded

impl Send for FullDecoded

impl<'a> Send for Part<'a>

impl<'a> Send for Formatted<'a>

impl Send for Sign

impl Send for Unpacked

impl Send for Sign

impl<'a> Send for Decimal<'a>

impl<'a> Send for ParseResult<'a>

impl Send for ParseFloatError

impl Send for Big32x40

impl Send for Big8x3

impl Send for Argument

impl Send for FormatSpec

impl Send for Alignment

impl Send for Count

impl Send for Position

Implementors

Auto implementors