Trait koto_runtime::KotoSend

1.0.0 · source ·
pub unsafe auto trait KotoSend { }
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 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 and the Sync trait for more details.

Implementors§

source§

impl !Send for LocalWaker

1.26.0 · source§

impl !Send for Args

1.26.0 · source§

impl !Send for ArgsOs

1.6.0 · source§

impl Send for alloc::string::Drain<'_>

1.36.0 · source§

impl Send for Waker

1.63.0 · source§

impl Send for BorrowedHandle<'_>

1.63.0 · source§

impl Send for HandleOrInvalid

1.63.0 · source§

impl Send for HandleOrNull

1.63.0 · source§

impl Send for OwnedHandle

1.44.0 · source§

impl<'a> Send for IoSlice<'a>

1.44.0 · source§

impl<'a> Send for IoSliceMut<'a>

source§

impl<'a, 'b, K, Q, V, S, A> Send for OccupiedEntryRef<'a, 'b, K, Q, V, S, A>
where K: Send, Q: Sync + ?Sized, V: Send, S: Send, A: Send + Allocator,

source§

impl<'a, R, T> Send for lock_api::mutex::MappedMutexGuard<'a, R, T>
where R: RawMutex + 'a, T: Send + 'a + ?Sized, <R as RawMutex>::GuardMarker: Send,

source§

impl<'a, R, T> Send for lock_api::rwlock::MappedRwLockReadGuard<'a, R, T>
where R: RawRwLock + 'a, T: Sync + 'a + ?Sized, <R as RawRwLock>::GuardMarker: Send,

source§

impl<'a, R, T> Send for lock_api::rwlock::MappedRwLockWriteGuard<'a, R, T>
where R: RawRwLock + 'a, T: Send + 'a + ?Sized, <R as RawRwLock>::GuardMarker: Send,

source§

impl<'a, T> Send for smallvec::Drain<'a, T>
where T: Send + Array,

source§

impl<A> Send for SmallVec<A>
where A: Array, <A as Array>::Item: Send,

source§

impl<Dyn> Send for DynMetadata<Dyn>
where Dyn: ?Sized,

source§

impl<K, V> Send for hashbrown::map::IterMut<'_, K, V>
where K: Send, V: Send,

source§

impl<K, V, S, A> Send for hashbrown::map::OccupiedEntry<'_, K, V, S, A>
where K: Send, V: Send, S: Send, A: Send + Allocator,

source§

impl<K, V, S, A> Send for RawOccupiedEntryMut<'_, K, V, S, A>
where K: Send, V: Send, S: Send, A: Send + Allocator,

source§

impl<R, G> Send for RawReentrantMutex<R, G>
where R: RawMutex + Send, G: GetThreadId + Send,

source§

impl<R, G, T> Send for ReentrantMutex<R, G, T>
where R: RawMutex + Send, G: GetThreadId + Send, T: Send + ?Sized,

source§

impl<R, T> Send for lock_api::mutex::Mutex<R, T>
where R: RawMutex + Send, T: Send + ?Sized,

source§

impl<R, T> Send for lock_api::rwlock::RwLock<R, T>
where R: RawRwLock + Send, T: Send + ?Sized,

1.0.0 · source§

impl<T> !Send for *const T
where T: ?Sized,

1.0.0 · source§

impl<T> !Send for *mut T
where T: ?Sized,

1.25.0 · source§

impl<T> !Send for NonNull<T>
where T: ?Sized,

NonNull pointers are not Send because the data they reference may be aliased.

source§

impl<T> !Send for std::sync::mutex::MappedMutexGuard<'_, T>
where T: ?Sized,

1.0.0 · source§

impl<T> !Send for MutexGuard<'_, T>
where T: ?Sized,

source§

impl<T> !Send for ReentrantLockGuard<'_, T>
where T: ?Sized,

source§

impl<T> !Send for std::sync::rwlock::MappedRwLockReadGuard<'_, T>
where T: ?Sized,

source§

impl<T> !Send for std::sync::rwlock::MappedRwLockWriteGuard<'_, T>
where T: ?Sized,

1.0.0 · source§

impl<T> !Send for RwLockReadGuard<'_, T>
where T: ?Sized,

1.0.0 · source§

impl<T> !Send for RwLockWriteGuard<'_, T>
where T: ?Sized,

1.0.0 · source§

impl<T> Send for &T
where T: Sync + ?Sized,

source§

impl<T> Send for ThinBox<T>
where T: Send + ?Sized,

ThinBox<T> is Send if T is Send because the data is owned.

1.0.0 · source§

impl<T> Send for alloc::collections::linked_list::Iter<'_, T>
where T: Sync,

1.0.0 · source§

impl<T> Send for alloc::collections::linked_list::IterMut<'_, T>
where T: Send,

1.0.0 · source§

impl<T> Send for Cell<T>
where T: Send + ?Sized,

1.0.0 · source§

impl<T> Send for RefCell<T>
where T: Send + ?Sized,

1.28.0 · source§

impl<T> Send for NonZero<T>

1.31.0 · source§

impl<T> Send for ChunksExactMut<'_, T>
where T: Send,

1.0.0 · source§

impl<T> Send for ChunksMut<'_, T>
where T: Send,

1.0.0 · source§

impl<T> Send for core::slice::iter::Iter<'_, T>
where T: Sync,

1.0.0 · source§

impl<T> Send for core::slice::iter::IterMut<'_, T>
where T: Send,

1.31.0 · source§

impl<T> Send for RChunksExactMut<'_, T>
where T: Send,

1.31.0 · source§

impl<T> Send for RChunksMut<'_, T>
where T: Send,

1.0.0 · source§

impl<T> Send for AtomicPtr<T>

1.0.0 · source§

impl<T> Send for Receiver<T>
where T: Send,

1.0.0 · source§

impl<T> Send for Sender<T>
where T: Send,

1.0.0 · source§

impl<T> Send for SyncSender<T>
where T: Send,

1.0.0 · source§

impl<T> Send for std::sync::mutex::Mutex<T>
where T: Send + ?Sized,

1.70.0 · source§

impl<T> Send for OnceLock<T>
where T: Send,

source§

impl<T> Send for ReentrantLock<T>
where T: Send + ?Sized,

1.0.0 · source§

impl<T> Send for std::sync::rwlock::RwLock<T>
where T: Send + ?Sized,

1.29.0 · source§

impl<T> Send for JoinHandle<T>

source§

impl<T> Send for Bucket<T>

1.0.0 · source§

impl<T, A> !Send for Rc<T, A>
where A: Allocator, T: ?Sized,

1.4.0 · source§

impl<T, A> !Send for alloc::rc::Weak<T, A>
where A: Allocator, T: ?Sized,

source§

impl<T, A> Send for Cursor<'_, T, A>
where T: Sync, A: Allocator + Sync,

source§

impl<T, A> Send for CursorMut<'_, T, A>
where T: Send, A: Allocator + Send,

1.0.0 · source§

impl<T, A> Send for LinkedList<T, A>
where T: Send, A: Allocator + Send,

1.6.0 · source§

impl<T, A> Send for alloc::collections::vec_deque::drain::Drain<'_, T, A>
where T: Send, A: Allocator + Send,

1.0.0 · source§

impl<T, A> Send for Arc<T, A>
where T: Sync + Send + ?Sized, A: Allocator + Send,

1.4.0 · source§

impl<T, A> Send for alloc::sync::Weak<T, A>
where T: Sync + Send + ?Sized, A: Allocator + Send,

1.6.0 · source§

impl<T, A> Send for alloc::vec::drain::Drain<'_, T, A>
where T: Send, A: Send + Allocator,

1.0.0 · source§

impl<T, A> Send for IntoIter<T, A>
where T: Send, A: Allocator + Send,

source§

impl<T, A> Send for RawDrain<'_, T, A>
where A: Allocator + Send, T: Send,

source§

impl<T, A> Send for RawIntoIter<T, A>
where A: Allocator + Send, T: Send,

source§

impl<T, A> Send for RawTable<T, A>
where A: Allocator + Send, T: Send,

source§

impl<T, A> Send for hashbrown::table::OccupiedEntry<'_, T, A>
where T: Send, A: Send + Allocator,

source§

impl<Tz> Send for Date<Tz>
where Tz: TimeZone, <Tz as TimeZone>::Offset: Send,

Auto implementors§

§

impl Send for ChunksError

§

impl Send for ReversedError

§

impl Send for StepError

§

impl Send for WindowsError

§

impl Send for ErrorKind

§

impl Send for ReturnOrYield

§

impl Send for BinaryOp

§

impl Send for IsIterable

§

impl Send for KIteratorOutput

§

impl Send for KNumber

§

impl Send for KValue

§

impl Send for MetaKey

§

impl Send for UnaryOp

§

impl Send for File

§

impl Send for Chain

§

impl Send for Chunks

§

impl Send for Cycle

§

impl Send for Each

§

impl Send for Enumerate

§

impl Send for Flatten

§

impl Send for Intersperse

§

impl Send for IntersperseWith

§

impl Send for Keep

§

impl Send for PairFirst

§

impl Send for PairSecond

§

impl Send for Reversed

§

impl Send for Step

§

impl Send for Take

§

impl Send for TakeWhile

§

impl Send for Windows

§

impl Send for Zip

§

impl Send for Generate

§

impl Send for GenerateN

§

impl Send for Once

§

impl Send for Repeat

§

impl Send for RepeatN

§

impl Send for Peekable

§

impl Send for IteratorOutput

§

impl Send for Chunk

§

impl Send for DateTime

§

impl Send for Timer

§

impl Send for Bytes

§

impl Send for CharIndices

§

impl Send for Lines

§

impl Send for Split

§

impl Send for SplitWith

§

impl Send for CoreLib

§

impl Send for KIterator

§

impl Send for KList

§

impl Send for KMap

§

impl Send for KNativeFunction

§

impl Send for KObject

§

impl Send for KRange

§

impl Send for KString

§

impl Send for KTuple

§

impl Send for KotoVm

§

impl Send for KotoVmSettings

§

impl Send for MetaMap

§

impl Send for ValueKey

§

impl Send for ValueMap

§

impl Send for DefaultStderr

§

impl Send for DefaultStdin

§

impl Send for DefaultStdout

§

impl Send for Error

§

impl Send for KCaptureFunction

§

impl Send for KFunction

§

impl<'a> !Send for DisplayContext<'a>

§

impl<'a> Send for CallArgs<'a>

§

impl<'a> Send for CallContext<'a>

§

impl<'a, T> !Send for Borrow<'a, T>

§

impl<'a, T> !Send for BorrowMut<'a, T>

§

impl<'a, T> Send for MethodContext<'a, T>
where T: Send,

§

impl<T> Send for BufferedFile<T>
where T: Send,

§

impl<T> Send for KCell<T>
where T: Send + ?Sized,

§

impl<T> Send for Ptr<T>
where T: Sync + Send + ?Sized,