Trait scale_info::prelude::marker::Send

1.0.0 · source ·
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 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§

1.26.0 · source§

impl !Send for Args

1.26.0 · source§

impl !Send for ArgsOs

source§

impl Send for Bytes

source§

impl Send for BytesMut

1.6.0 · source§

impl Send for scale_info::prelude::string::Drain<'_>

1.36.0 · source§

impl Send for Waker

1.44.0 · source§

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

1.44.0 · source§

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

source§

impl<'a, T, O> Send for bitvec::slice::iter::Iter<'a, T, O>where T: BitStore, O: BitOrder, &'a mut BitSlice<T, O>: Send,

source§

impl<'a, T, O> Send for bitvec::slice::iter::IterMut<'a, T, O>where T: BitStore, O: BitOrder, &'a mut BitSlice<T, O>: Send,

source§

impl<'a, T, const CAP: usize> Send for arrayvec::arrayvec::Drain<'a, T, CAP>where T: Send,

source§

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

source§

impl<M, T, O> Send for BitRef<'_, M, T, O>where M: Mutability, T: BitStore + Sync, O: BitOrder,

source§

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

source§

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

source§

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

1.4.0 · source§

impl<T> !Send for alloc::rc::Weak<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 MutexGuard<'_, T>where T: ?Sized,

source§

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

source§

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

source§

impl<T> Send for BitSpanError<T>where T: BitStore,

source§

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

source§

impl<T> Send for MisalignError<T>

source§

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

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

source§

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

source§

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

source§

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

1.4.0 · source§

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

source§

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

source§

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

1.31.0 · source§

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

source§

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

source§

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

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,

source§

impl<T> Send for AtomicPtr<T>

source§

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

source§

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

source§

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

source§

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

1.70.0 · source§

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

source§

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

1.29.0 · source§

impl<T> Send for JoinHandle<T>

source§

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

source§

impl<T, A> Send for scale_info::prelude::collections::linked_list::CursorMut<'_, T, A>where T: Send, A: Allocator + Send,

source§

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

1.6.0 · source§

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

1.6.0 · source§

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

source§

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

source§

impl<T, O> Send for bitvec::boxed::iter::IntoIter<T, O>where T: BitStore + Sync, O: BitOrder,

source§

impl<T, O> Send for BitBox<T, O>where T: BitStore, O: BitOrder,

source§

impl<T, O> Send for BitSlice<T, O>where T: BitStore + Sync, O: BitOrder,

Bit-Slice Thread Safety

This allows bit-slice references to be moved across thread boundaries only when the underlying T element can tolerate concurrency.

All BitSlice references, shared or exclusive, are only threadsafe if the T element type is Send, because any given bit-slice reference may only have partial control of a memory element that is also being shared by a bit-slice reference on another thread. As such, this is never implemented for Cell<U>, but always implemented for AtomicU and U for a given unsigned integer type U.

Atomic integers safely handle concurrent writes, cells do not allow concurrency at all, so the only missing piece is &mut BitSlice<_, U: Unsigned>. This is handled by the aliasing system that the mutable splitters employ: a mutable reference to an unsynchronized bit-slice can only cross threads when no other handle is able to exist to the elements it governs. Splitting a mutable bit-slice causes the split halves to change over to either atomics or cells, so concurrency is either safe or impossible.

source§

impl<T, O> Send for bitvec::vec::iter::Drain<'_, T, O>where T: BitStore, O: BitOrder, &'a mut BitSlice<T, O>: for<'a> Send,

source§

impl<T, O> Send for BitVec<T, O>where T: BitStore, O: BitOrder,

Auto implementors§

§

impl Send for NamedFields

§

impl Send for NoFields

§

impl Send for UnnamedFields

§

impl Send for NameAssigned

§

impl Send for NameNotAssigned

§

impl Send for TypeAssigned

§

impl Send for TypeNotAssigned

§

impl Send for PathAssigned

§

impl Send for PathNotAssigned

§

impl Send for IndexAssigned

§

impl Send for IndexNotAssigned

§

impl Send for PathError

§

impl Send for TypeDefPrimitive

§

impl Send for MetaForm

§

impl Send for PortableForm

§

impl Send for Ordering

§

impl Send for TryReserveErrorKind

§

impl Send for Alignment

§

impl Send for FpCategory

§

impl Send for IntErrorKind

§

impl Send for MetaType

§

impl Send for PortableRegistry

§

impl Send for PortableRegistryBuilder

§

impl Send for Registry

§

impl Send for TypeId

§

impl Send for DefaultHasher

§

impl Send for RandomState

§

impl Send for TryReserveError

§

impl Send for Error

§

impl Send for SipHasher

§

impl Send for Assume

§

impl Send for NonZeroI8

§

impl Send for NonZeroI16

§

impl Send for NonZeroI32

§

impl Send for NonZeroI64

§

impl Send for NonZeroI128

§

impl Send for NonZeroIsize

§

impl Send for NonZeroU8

§

impl Send for NonZeroU16

§

impl Send for NonZeroU32

§

impl Send for NonZeroU64

§

impl Send for NonZeroU128

§

impl Send for NonZeroUsize

§

impl Send for ParseFloatError

§

impl Send for ParseIntError

§

impl Send for TryFromIntError

§

impl Send for RangeFull

§

impl Send for FromUtf8Error

§

impl Send for FromUtf16Error

§

impl Send for String

§

impl Send for PhantomPinned

§

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

§

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

§

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

§

impl<'a, 'b> !Send for DebugList<'a, 'b>

§

impl<'a, 'b> !Send for DebugMap<'a, 'b>

§

impl<'a, 'b> !Send for DebugSet<'a, 'b>

§

impl<'a, 'b> !Send for DebugStruct<'a, 'b>

§

impl<'a, 'b> !Send for DebugTuple<'a, 'b>

§

impl<'a, B: ?Sized> Send for Cow<'a, B>where B: Sync, <B as ToOwned>::Owned: Send,

§

impl<'a, I, A> Send for Splice<'a, I, A>where A: Send, I: Send, <I as Iterator>::Item: Send,

§

impl<'a, K> Send for scale_info::prelude::collections::hash_set::Drain<'a, K>where K: Send,

§

impl<'a, K> Send for scale_info::prelude::collections::hash_set::Iter<'a, K>where K: Sync,

§

impl<'a, K, F> Send for scale_info::prelude::collections::hash_set::ExtractIf<'a, K, F>where F: Send, K: Send,

§

impl<'a, K, V> Send for scale_info::prelude::collections::hash_map::Entry<'a, K, V>where K: Send, V: Send,

§

impl<'a, K, V> Send for scale_info::prelude::collections::btree_map::Cursor<'a, K, V>where K: Sync, V: Sync,

§

impl<'a, K, V> Send for scale_info::prelude::collections::btree_map::Iter<'a, K, V>where K: Sync, V: Sync,

§

impl<'a, K, V> Send for scale_info::prelude::collections::btree_map::IterMut<'a, K, V>where K: Send, V: Send,

§

impl<'a, K, V> Send for scale_info::prelude::collections::btree_map::Keys<'a, K, V>where K: Sync, V: Sync,

§

impl<'a, K, V> Send for scale_info::prelude::collections::btree_map::Range<'a, K, V>where K: Sync, V: Sync,

§

impl<'a, K, V> Send for RangeMut<'a, K, V>where K: Send, V: Send,

§

impl<'a, K, V> Send for scale_info::prelude::collections::btree_map::Values<'a, K, V>where K: Sync, V: Sync,

§

impl<'a, K, V> Send for scale_info::prelude::collections::btree_map::ValuesMut<'a, K, V>where K: Send, V: Send,

§

impl<'a, K, V> Send for scale_info::prelude::collections::hash_map::Drain<'a, K, V>where K: Send, V: Send,

§

impl<'a, K, V> Send for scale_info::prelude::collections::hash_map::Iter<'a, K, V>where K: Sync, V: Sync,

§

impl<'a, K, V> Send for scale_info::prelude::collections::hash_map::IterMut<'a, K, V>where K: Send, V: Send,

§

impl<'a, K, V> Send for scale_info::prelude::collections::hash_map::Keys<'a, K, V>where K: Sync, V: Sync,

§

impl<'a, K, V> Send for scale_info::prelude::collections::hash_map::OccupiedEntry<'a, K, V>where K: Send, V: Send,

§

impl<'a, K, V> Send for scale_info::prelude::collections::hash_map::OccupiedError<'a, K, V>where K: Send, V: Send,

§

impl<'a, K, V> Send for scale_info::prelude::collections::hash_map::VacantEntry<'a, K, V>where K: Send, V: Send,

§

impl<'a, K, V> Send for scale_info::prelude::collections::hash_map::Values<'a, K, V>where K: Sync, V: Sync,

§

impl<'a, K, V> Send for scale_info::prelude::collections::hash_map::ValuesMut<'a, K, V>where K: Send, V: Send,

§

impl<'a, K, V, A> Send for scale_info::prelude::collections::btree_map::Entry<'a, K, V, A>where A: Send, K: Send, V: Send,

§

impl<'a, K, V, A> Send for scale_info::prelude::collections::btree_map::CursorMut<'a, K, V, A>where A: Send, K: Send, V: Send,

§

impl<'a, K, V, A> Send for scale_info::prelude::collections::btree_map::OccupiedEntry<'a, K, V, A>where A: Send, K: Send, V: Send,

§

impl<'a, K, V, A> Send for scale_info::prelude::collections::btree_map::OccupiedError<'a, K, V, A>where A: Send, K: Send, V: Send,

§

impl<'a, K, V, A> Send for scale_info::prelude::collections::btree_map::VacantEntry<'a, K, V, A>where A: Send, K: Send, V: Send,

§

impl<'a, K, V, F> Send for scale_info::prelude::collections::hash_map::ExtractIf<'a, K, V, F>where F: Send, K: Send, V: Send,

§

impl<'a, K, V, F, A> Send for scale_info::prelude::collections::btree_map::ExtractIf<'a, K, V, F, A>where A: Send, F: Send, K: Send, V: Send,

§

impl<'a, K, V, S> Send for RawEntryMut<'a, K, V, S>where K: Send, S: Send + Sync, V: Send,

§

impl<'a, K, V, S> Send for RawEntryBuilder<'a, K, V, S>where K: Sync, S: Sync, V: Sync,

§

impl<'a, K, V, S> Send for RawEntryBuilderMut<'a, K, V, S>where K: Send, S: Send, V: Send,

§

impl<'a, K, V, S> Send for RawOccupiedEntryMut<'a, K, V, S>where K: Send, S: Send, V: Send,

§

impl<'a, K, V, S> Send for RawVacantEntryMut<'a, K, V, S>where K: Send, S: Sync, V: Send,

§

impl<'a, T> Send for Symbol<'a, T>

§

impl<'a, T> Send for scale_info::prelude::collections::binary_heap::Iter<'a, T>where T: Sync,

§

impl<'a, T> Send for scale_info::prelude::collections::btree_set::Iter<'a, T>where T: Sync,

§

impl<'a, T> Send for scale_info::prelude::collections::btree_set::Range<'a, T>where T: Sync,

§

impl<'a, T> Send for scale_info::prelude::collections::btree_set::SymmetricDifference<'a, T>where T: Sync,

§

impl<'a, T> Send for scale_info::prelude::collections::btree_set::Union<'a, T>where T: Sync,

§

impl<'a, T> Send for scale_info::prelude::collections::vec_deque::Iter<'a, T>where T: Sync,

§

impl<'a, T> Send for scale_info::prelude::collections::vec_deque::IterMut<'a, T>where T: Send,

§

impl<'a, T, A> Send for scale_info::prelude::collections::binary_heap::Drain<'a, T, A>where A: Send, T: Send,

§

impl<'a, T, A> Send for DrainSorted<'a, T, A>where A: Send, T: Send,

§

impl<'a, T, A> Send for PeekMut<'a, T, A>where A: Send, T: Send,

§

impl<'a, T, A> Send for scale_info::prelude::collections::btree_set::Difference<'a, T, A>where A: Sync, T: Sync,

§

impl<'a, T, A> Send for scale_info::prelude::collections::btree_set::Intersection<'a, T, A>where A: Sync, T: Sync,

§

impl<'a, T, F, A = Global> !Send for scale_info::prelude::collections::linked_list::ExtractIf<'a, T, F, A>

§

impl<'a, T, F, A> Send for scale_info::prelude::collections::btree_set::ExtractIf<'a, T, F, A>where A: Send, F: Send, T: Send,

§

impl<'a, T, F, A> Send for scale_info::prelude::vec::ExtractIf<'a, T, F, A>where A: Send, F: Send, T: Send,

§

impl<'a, T, S> Send for scale_info::prelude::collections::hash_set::Difference<'a, T, S>where S: Sync, T: Sync,

§

impl<'a, T, S> Send for scale_info::prelude::collections::hash_set::Intersection<'a, T, S>where S: Sync, T: Sync,

§

impl<'a, T, S> Send for scale_info::prelude::collections::hash_set::SymmetricDifference<'a, T, S>where S: Sync, T: Sync,

§

impl<'a, T, S> Send for scale_info::prelude::collections::hash_set::Union<'a, T, S>where S: Sync, T: Sync,

§

impl<B, C> Send for ControlFlow<B, C>where B: Send, C: Send,

§

impl<F> Send for Fields<F>

§

impl<F> Send for Variants<F>where <F as Form>::String: Send, <F as Form>::Type: Send,

§

impl<F, N, T> Send for FieldBuilder<F, N, T>where <F as Form>::String: Send, <F as Form>::Type: Send,

§

impl<F, S> Send for TypeBuilder<F, S>where <F as Form>::String: Send, <F as Form>::Type: Send,

§

impl<F, S> Send for VariantBuilder<F, S>where S: Send, <F as Form>::String: Send, <F as Form>::Type: Send,

§

impl<F, T> Send for FieldsBuilder<F, T>where <F as Form>::String: Send, <F as Form>::Type: Send,

§

impl<H> Send for BuildHasherDefault<H>

§

impl<Idx> Send for scale_info::prelude::ops::Range<Idx>where Idx: Send,

§

impl<Idx> Send for RangeFrom<Idx>where Idx: Send,

§

impl<Idx> Send for RangeInclusive<Idx>where Idx: Send,

§

impl<Idx> Send for RangeTo<Idx>where Idx: Send,

§

impl<Idx> Send for RangeToInclusive<Idx>where Idx: Send,

§

impl<K> Send for scale_info::prelude::collections::hash_set::IntoIter<K>where K: Send,

§

impl<K, V> Send for scale_info::prelude::collections::hash_map::IntoIter<K, V>where K: Send, V: Send,

§

impl<K, V> Send for scale_info::prelude::collections::hash_map::IntoKeys<K, V>where K: Send, V: Send,

§

impl<K, V> Send for scale_info::prelude::collections::hash_map::IntoValues<K, V>where K: Send, V: Send,

§

impl<K, V, A> Send for scale_info::prelude::collections::btree_map::IntoIter<K, V, A>where A: Send, K: Send, V: Send,

§

impl<K, V, A> Send for scale_info::prelude::collections::btree_map::IntoKeys<K, V, A>where A: Send, K: Send, V: Send,

§

impl<K, V, A> Send for scale_info::prelude::collections::btree_map::IntoValues<K, V, A>where A: Send, K: Send, V: Send,

§

impl<K, V, A> Send for BTreeMap<K, V, A>where A: Send, K: Send, V: Send,

§

impl<K, V, S> Send for HashMap<K, V, S>where K: Send, S: Send, V: Send,

§

impl<T> Send for TypeDef<T>where <T as Form>::String: Send, <T as Form>::Type: Send,

§

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

§

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

§

impl<T> Send for UntrackedSymbol<T>

§

impl<T> Send for Field<T>where <T as Form>::String: Send, <T as Form>::Type: Send,

§

impl<T> Send for Path<T>where <T as Form>::String: Send,

§

impl<T> Send for Type<T>where <T as Form>::String: Send, <T as Form>::Type: Send,

§

impl<T> Send for TypeDefArray<T>where <T as Form>::Type: Send,

§

impl<T> Send for TypeDefBitSequence<T>where <T as Form>::Type: Send,

§

impl<T> Send for TypeDefCompact<T>where <T as Form>::Type: Send,

§

impl<T> Send for TypeDefComposite<T>where <T as Form>::String: Send, <T as Form>::Type: Send,

§

impl<T> Send for TypeDefSequence<T>where <T as Form>::Type: Send,

§

impl<T> Send for TypeDefTuple<T>where <T as Form>::Type: Send,

§

impl<T> Send for TypeDefVariant<T>where <T as Form>::String: Send, <T as Form>::Type: Send,

§

impl<T> Send for TypeParameter<T>where <T as Form>::String: Send, <T as Form>::Type: Send,

§

impl<T> Send for Variant<T>where <T as Form>::String: Send, <T as Form>::Type: Send,

§

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

§

impl<T> Send for Discriminant<T>

§

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

§

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

§

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

§

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

§

impl<T, A> Send for scale_info::prelude::collections::binary_heap::IntoIter<T, A>where A: Send, T: Send,

§

impl<T, A> Send for IntoIterSorted<T, A>where A: Send, T: Send,

§

impl<T, A> Send for scale_info::prelude::collections::btree_set::IntoIter<T, A>where A: Send, T: Send,

§

impl<T, A> Send for scale_info::prelude::collections::linked_list::IntoIter<T, A>where A: Send, T: Send,

§

impl<T, A> Send for BTreeSet<T, A>where A: Send, T: Send,

§

impl<T, A> Send for BinaryHeap<T, A>where A: Send, T: Send,

§

impl<T, A> Send for VecDeque<T, A>where A: Send, T: Send,

§

impl<T, A> Send for scale_info::prelude::collections::vec_deque::IntoIter<T, A>where A: Send, T: Send,

§

impl<T, A> Send for Vec<T, A>where A: Send, T: Send,

§

impl<T, S> Send for HashSet<T, S>where S: Send, T: Send,

§

impl<T: ?Sized> Send for ManuallyDrop<T>where T: Send,

§

impl<T: ?Sized> Send for PhantomData<T>where T: Send,

§

impl<T: ?Sized, A> Send for Box<T, A>where A: Send, T: Send,

§

impl<Y, R> Send for GeneratorState<Y, R>where R: Send, Y: Send,