pub unsafe auto trait Send { }
Expand description
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 Rc
s 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 and the Sync
trait for more details.
Implementors§
impl !Send for Args
impl !Send for ArgsOs
impl !Send for Arguments<'_>
impl !Send for LocalWaker
impl Send for RawId
impl Send for ExampleEnumIntU8
Available on
doc
only.impl Send for devela::_dep::_alloc::string::Drain<'_>
impl Send for Bump
impl Send for PyBackedBytes
impl Send for PyBackedStr
impl Send for Arena
impl Send for ArenaHandle<'_>
impl Send for devela::_dep::rodio::cpal::platform::AlsaDevices
impl Send for Waker
impl Send for devela::_core::ffi::c_str::Bytes<'_>
impl Send for Bytes
impl Send for BytesMut
impl Send for ClientInfo
impl Send for Collector
impl Send for Ctl
impl Send for ElemId
impl Send for HCtl
impl Send for Mixer
impl Send for Output
impl Send for PCM
impl Send for Parker
impl Send for PortInfo
impl Send for PortSubscribe
impl Send for QueueStatus
impl Send for QueueTempo
impl Send for Rawmidi
impl Send for RemoveEvents
impl Send for Seq
impl Send for Unparker
impl<'a> Send for IoSlice<'a>
impl<'a> Send for IoSliceMut<'a>
impl<'a> Send for Event<'a>
impl<'a, 'bump> Send for devela::_dep::bumpalo::collections::string::Drain<'a, 'bump>
impl<'a, 'bump, T> Send for devela::_dep::bumpalo::collections::vec::Drain<'a, 'bump, T>where
T: Send,
impl<'a, R, T> Send for MappedMutexGuard<'a, R, T>
impl<'a, R, T> Send for MappedRwLockReadGuard<'a, R, T>
impl<'a, R, T> Send for MappedRwLockWriteGuard<'a, R, T>
impl<'a, T> Send for Drain<'a, T>where
T: Send + Array,
impl<'a, T, const CAP: usize> Send for arrayvec::arrayvec::Drain<'a, T, CAP>where
T: Send,
impl<'bump, T> Send for devela::_dep::bumpalo::collections::vec::IntoIter<'bump, T>where
T: Send,
impl<A> Send for SmallVec<A>where
A: Array,
<A as Array>::Item: Send,
impl<Dyn> Send for devela::_dep::rkyv::ptr_meta::DynMetadata<Dyn>where
Dyn: ?Sized,
impl<Dyn> Send for devela::_core::ptr::DynMetadata<Dyn>where
Dyn: ?Sized,
impl<K, V> Send for devela::_dep::hashbrown::hash_map::IterMut<'_, K, V>
impl<K, V, S, A> Send for devela::_dep::hashbrown::hash_map::OccupiedEntry<'_, K, V, S, A>
impl<K, V, S, A> Send for devela::_dep::hashbrown::hash_map::RawOccupiedEntryMut<'_, K, V, S, A>
impl<R, G> Send for RawReentrantMutex<R, G>
impl<R, G, T> Send for ReentrantMutex<R, G, T>
impl<R, T> Send for Mutex<R, T>
impl<R, T> Send for RwLock<R, T>
impl<T> !Send for *const Twhere
T: ?Sized,
impl<T> !Send for *mut Twhere
T: ?Sized,
impl<T> !Send for devela::_dep::_std::sync::MappedMutexGuard<'_, T>where
T: ?Sized,
impl<T> !Send for devela::_dep::_std::sync::MappedRwLockReadGuard<'_, T>where
T: ?Sized,
impl<T> !Send for devela::_dep::_std::sync::MappedRwLockWriteGuard<'_, T>where
T: ?Sized,
impl<T> !Send for ReentrantLockGuard<'_, T>where
T: ?Sized,
impl<T> !Send for NonNull<T>where
T: ?Sized,
NonNull
pointers are not Send
because the data they reference may be aliased.
impl<T> !Send for MutexGuard<'_, T>where
T: ?Sized,
impl<T> !Send for RwLockReadGuard<'_, T>where
T: ?Sized,
impl<T> !Send for RwLockWriteGuard<'_, T>where
T: ?Sized,
impl<T> Send for &T
impl<T> Send for ThinBox<T>
ThinBox<T>
is Send
if T
is Send
because the data is owned.
impl<T> Send for devela::_dep::_alloc::collections::linked_list::Iter<'_, T>where
T: Sync,
impl<T> Send for devela::_dep::_alloc::collections::linked_list::IterMut<'_, T>where
T: Send,
impl<T> Send for devela::_dep::_std::sync::mpmc::Receiver<T>where
T: Send,
impl<T> Send for devela::_dep::_std::sync::mpmc::Sender<T>where
T: Send,
impl<T> Send for devela::_dep::_std::sync::mpsc::Receiver<T>where
T: Send,
impl<T> Send for devela::_dep::_std::sync::mpsc::Sender<T>where
T: Send,
impl<T> Send for SyncSender<T>where
T: Send,
impl<T> Send for ReentrantLock<T>
impl<T> Send for PyBuffer<T>
impl<T> Send for Py<T>
impl<T> Send for GILOnceCell<T>where
T: Send,
impl<T> Send for SerVec<T>where
T: Send,
impl<T> Send for ReadHalf<T>where
T: Send,
impl<T> Send for WriteHalf<T>where
T: Send,
impl<T> Send for Cell<T>
impl<T> Send for NonZero<T>where
T: ZeroablePrimitive + Send,
impl<T> Send for RefCell<T>
impl<T> Send for devela::work::Mutex<T>
impl<T> Send for OnceLock<T>where
T: Send,
impl<T> Send for devela::work::RwLock<T>
impl<T> Send for JoinHandle<T>
impl<T> Send for devela::_core::slice::ChunksExactMut<'_, T>where
T: Send,
impl<T> Send for devela::_core::slice::ChunksMut<'_, T>where
T: Send,
impl<T> Send for devela::_core::slice::Iter<'_, T>where
T: Sync,
impl<T> Send for devela::_core::slice::IterMut<'_, T>where
T: Send,
impl<T> Send for devela::_core::slice::RChunksExactMut<'_, T>where
T: Send,
impl<T> Send for devela::_core::slice::RChunksMut<'_, T>where
T: Send,
impl<T> Send for devela::_core::sync::atomic::AtomicPtr<T>
impl<T> Send for Atomic<T>
impl<T> Send for AtomicCell<T>where
T: Send,
impl<T> Send for CachePadded<T>where
T: Send,
impl<T> Send for Channel<T>where
T: Send,
impl<T> Send for Consumer<T>where
T: Send,
impl<T> Send for Injector<T>where
T: Send,
impl<T> Send for Producer<T>where
T: Send,
impl<T> Send for ReadChunk<'_, T>where
T: Send,
impl<T> Send for ScopedJoinHandle<'_, T>
impl<T> Send for ShardedLock<T>
impl<T> Send for Stealer<T>where
T: Send,
impl<T> Send for Worker<T>where
T: Send,
impl<T> Send for WriteChunkUninit<'_, T>where
T: Send,
impl<T, A> !Send for UniqueRc<T, A>
impl<T, A> !Send for Rc<T, A>
impl<T, A> !Send for devela::all::RcWeak<T, A>
impl<T, A> Send for devela::_dep::_alloc::collections::linked_list::Cursor<'_, T, A>
impl<T, A> Send for devela::_dep::_alloc::collections::linked_list::CursorMut<'_, T, A>
impl<T, A> Send for devela::_dep::_alloc::collections::vec_deque::Drain<'_, T, A>
impl<T, A> Send for devela::_dep::_alloc::vec::Drain<'_, T, A>
impl<T, A> Send for devela::_dep::_alloc::vec::IntoIter<T, A>
impl<T, A> Send for devela::_dep::hashbrown::hash_table::OccupiedEntry<'_, T, A>
impl<T, A> Send for LinkedList<T, A>
impl<T, A> Send for Arc<T, A>
impl<T, A> Send for devela::work::ArcWeak<T, A>
impl<T, const N: usize> Send for InlineVec<T, N>where
T: Send,
impl<T: Send> Send for BareBox<T>
Available on crate feature
unsafe_sync
only.impl<T: Send> Send for CacheAlign<T>
Available on crate feature
unsafe_sync
only.