Trait cairo_vm::with_std::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 for more details.

Implementors§

1.26.0 · source§

impl !Send for Args

1.26.0 · source§

impl !Send for ArgsOs

1.6.0 · source§

impl Send for cairo_vm::with_std::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<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,

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 Rc<T>where T: ?Sized,

1.4.0 · source§

impl<T> !Send for cairo_vm::with_std::rc::Weak<T>where T: ?Sized,

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 ThinBox<T>where T: Send + ?Sized,

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

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 cairo_vm::with_std::slice::Iter<'_, T>where T: Sync,

source§

impl<T> Send for cairo_vm::with_std::slice::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 Arc<T>where T: Sync + Send + ?Sized,

source§

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

1.70.0-nightly · source§

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

source§

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

1.4.0 · source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

1.29.0 · source§

impl<T> Send for JoinHandle<T>

source§

impl<T> Send for MisalignError<T>

§

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

§

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

§

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

1.6.0 · source§

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

source§

impl<T, A> Send for cairo_vm::with_std::vec::IntoIter<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,

source§

impl<T, N> Send for GenericArray<T, N>where T: Send, N: ArrayLength<T>,

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 BuiltinRunner

§

impl !Send for BuiltinHintProcessor

§

impl !Send for HintFunc

§

impl !Send for ExecutionScopes

§

impl !Send for SignatureBuiltinRunner

§

impl !Send for CairoRunner

§

impl !Send for VirtualMachine

§

impl !Send for VirtualMachineBuilder

§

impl !Send for Memory

§

impl !Send for ValidationRule

§

impl !Send for MemorySegmentManager

§

impl Send for Dictionary

§

impl Send for BuiltinName

§

impl Send for OffsetValue

§

impl Send for ReferenceParseError

§

impl Send for MathError

§

impl Send for ProgramError

§

impl Send for ApUpdate

§

impl Send for FpUpdate

§

impl Send for Op1Addr

§

impl Send for Opcode

§

impl Send for PcUpdate

§

impl Send for Register

§

impl Send for Res

§

impl Send for MaybeRelocatable

§

impl Send for CairoRunError

§

impl Send for ExecScopeError

§

impl Send for HintError

§

impl Send for InsufficientAllocatedCellsError

§

impl Send for MemoryError

§

impl Send for RunnerError

§

impl Send for TraceError

§

impl Send for VirtualMachineError

§

impl Send for CairoArg

§

impl Send for cairo_vm::with_std::cmp::Ordering

§

impl Send for Infallible

§

impl Send for cairo_vm::with_std::fmt::Alignment

§

impl Send for FpCategory

§

impl Send for IntErrorKind

§

impl Send for SearchStep

§

impl Send for cairo_vm::with_std::sync::atomic::Ordering

§

impl Send for RecvTimeoutError

§

impl Send for TryRecvError

§

impl Send for EncodeTraceError

§

impl Send for HintProcessorData

§

impl Send for DictManager

§

impl Send for DictTracker

§

impl Send for HintReference

§

impl Send for ApTracking

§

impl Send for Attribute

§

impl Send for DebugInfo

§

impl Send for FlowTrackingData

§

impl Send for HintLocation

§

impl Send for HintParams

§

impl Send for Identifier

§

impl Send for InputFile

§

impl Send for InstructionLocation

§

impl Send for Location

§

impl Send for Member

§

impl Send for ProgramJson

§

impl Send for Reference

§

impl Send for ReferenceManager

§

impl Send for ValueAddress

§

impl Send for Instruction

§

impl Send for Program

§

impl Send for Relocatable

§

impl Send for CAIRO_PRIME

§

impl Send for RunContext

§

impl Send for VmException

§

impl Send for BitwiseBuiltinRunner

§

impl Send for EcOpBuiltinRunner

§

impl Send for HashBuiltinRunner

§

impl Send for KeccakBuiltinRunner

§

impl Send for OutputBuiltinRunner

§

impl Send for PoseidonBuiltinRunner

§

impl Send for RangeCheckBuiltinRunner

§

impl Send for SegmentArenaBuiltinRunner

§

impl Send for ExecutionResources

§

impl Send for SegmentInfo

§

impl Send for TraceEntry

§

impl Send for DeducedOperands

§

impl Send for Operands

§

impl Send for OperandsAddresses

§

impl Send for AddressSet

§

impl Send for AllocError

§

impl Send for Global

§

impl Send for Layout

§

impl Send for LayoutError

§

impl Send for System

§

impl Send for TypeId

§

impl Send for BorrowError

§

impl Send for BorrowMutError

§

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 cairo_vm::with_std::ptr::Alignment

§

impl Send for ParseBoolError

§

impl Send for Utf8Error

§

impl Send for FromUtf8Error

§

impl Send for FromUtf16Error

§

impl Send for String

§

impl Send for AtomicBool

§

impl Send for AtomicI8

§

impl Send for AtomicI16

§

impl Send for AtomicI32

§

impl Send for AtomicI64

§

impl Send for AtomicIsize

§

impl Send for AtomicU8

§

impl Send for AtomicU16

§

impl Send for AtomicU32

§

impl Send for AtomicU64

§

impl Send for AtomicUsize

§

impl Send for RecvError

§

impl Send for Barrier

§

impl Send for BarrierWaitResult

§

impl Send for Condvar

§

impl Send for cairo_vm::with_std::sync::Once

§

impl Send for OnceState

§

impl Send for WaitTimeoutResult

§

impl Send for Duration

§

impl Send for TryFromFloatSecsError

§

impl Send for PhantomPinned

§

impl Send for Alignment

§

impl Send for Argument

§

impl Send for Count

§

impl Send for FormatSpec

§

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

§

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

§

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

§

impl<'a> Send for CairoRunConfig<'a>

§

impl<'a> Send for EscapeAscii<'a>

§

impl<'a> Send for CharSearcher<'a>

§

impl<'a> Send for Bytes<'a>

§

impl<'a> Send for CharIndices<'a>

§

impl<'a> Send for Chars<'a>

§

impl<'a> Send for EncodeUtf16<'a>

§

impl<'a> Send for EscapeDebug<'a>

§

impl<'a> Send for EscapeDefault<'a>

§

impl<'a> Send for EscapeUnicode<'a>

§

impl<'a> Send for Lines<'a>

§

impl<'a> Send for LinesAny<'a>

§

impl<'a> Send for SplitAsciiWhitespace<'a>

§

impl<'a> Send for SplitWhitespace<'a>

§

impl<'a> Send for Utf8Chunk<'a>

§

impl<'a> Send for Utf8Chunks<'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> Send for CharSliceSearcher<'a, 'b>

§

impl<'a, 'b> Send for StrSearcher<'a, 'b>

§

impl<'a, 'b, const N: usize> Send for CharArrayRefSearcher<'a, 'b, N>

§

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

§

impl<'a, F> Send for CharPredicateSearcher<'a, F>where F: Send,

§

impl<'a, I> Send for ByRefSized<'a, I>where I: Send,

§

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

§

impl<'a, P> Send for MatchIndices<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, P> Send for Matches<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, P> Send for RMatchIndices<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, P> Send for RMatches<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, P> Send for cairo_vm::with_std::str::RSplit<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, P> Send for cairo_vm::with_std::str::RSplitN<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, P> Send for RSplitTerminator<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, P> Send for cairo_vm::with_std::str::Split<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, P> Send for cairo_vm::with_std::str::SplitInclusive<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, P> Send for cairo_vm::with_std::str::SplitN<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, P> Send for SplitTerminator<'a, P>where <P as Pattern<'a>>::Searcher: Send,

§

impl<'a, T> !Send for cairo_vm::with_std::sync::mpsc::Iter<'a, T>

§

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

§

impl<'a, T> Send for cairo_vm::with_std::result::Iter<'a, T>where T: Sync,

§

impl<'a, T> Send for cairo_vm::with_std::result::IterMut<'a, T>where T: Send,

§

impl<'a, T> Send for Chunks<'a, T>where T: Sync,

§

impl<'a, T> Send for ChunksExact<'a, T>where T: Sync,

§

impl<'a, T> Send for RChunks<'a, T>where T: Sync,

§

impl<'a, T> Send for RChunksExact<'a, T>where T: Sync,

§

impl<'a, T> Send for Windows<'a, T>where T: Sync,

§

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

§

impl<'a, T, P> Send for GroupBy<'a, T, P>where P: Send, T: Sync,

§

impl<'a, T, P> Send for GroupByMut<'a, T, P>where P: Send, T: Send,

§

impl<'a, T, P> Send for cairo_vm::with_std::slice::RSplit<'a, T, P>where P: Send, T: Sync,

§

impl<'a, T, P> Send for RSplitMut<'a, T, P>where P: Send, T: Send,

§

impl<'a, T, P> Send for cairo_vm::with_std::slice::RSplitN<'a, T, P>where P: Send, T: Sync,

§

impl<'a, T, P> Send for RSplitNMut<'a, T, P>where P: Send, T: Send,

§

impl<'a, T, P> Send for cairo_vm::with_std::slice::Split<'a, T, P>where P: Send, T: Sync,

§

impl<'a, T, P> Send for cairo_vm::with_std::slice::SplitInclusive<'a, T, P>where P: Send, T: Sync,

§

impl<'a, T, P> Send for SplitInclusiveMut<'a, T, P>where P: Send, T: Send,

§

impl<'a, T, P> Send for SplitMut<'a, T, P>where P: Send, T: Send,

§

impl<'a, T, P> Send for cairo_vm::with_std::slice::SplitN<'a, T, P>where P: Send, T: Sync,

§

impl<'a, T, P> Send for SplitNMut<'a, T, P>where P: Send, T: Send,

§

impl<'a, T, const N: usize> !Send for ArrayWindows<'a, T, N>

§

impl<'a, T, const N: usize> Send for cairo_vm::with_std::slice::ArrayChunks<'a, T, N>where T: Sync,

§

impl<'a, T, const N: usize> Send for ArrayChunksMut<'a, T, N>where T: Send,

§

impl<'a, const N: usize> Send for CharArraySearcher<'a, N>

§

impl<'b, T> !Send for Ref<'b, T>

§

impl<'b, T> !Send for RefMut<'b, T>

§

impl<A> Send for Repeat<A>where A: Send,

§

impl<A, B> Send for Chain<A, B>where A: Send, B: Send,

§

impl<A, B> Send for Zip<A, B>where A: Send, B: Send,

§

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

§

impl<F> Send for FromFn<F>where F: Send,

§

impl<F> Send for OnceWith<F>where F: Send,

§

impl<F> Send for RepeatWith<F>where F: Send,

§

impl<H> Send for BuildHasherDefault<H>

§

impl<I> Send for Cloned<I>where I: Send,

§

impl<I> Send for Copied<I>where I: Send,

§

impl<I> Send for Cycle<I>where I: Send,

§

impl<I> Send for Enumerate<I>where I: Send,

§

impl<I> Send for Flatten<I>where I: Send, <<I as Iterator>::Item as IntoIterator>::IntoIter: Send,

§

impl<I> Send for Fuse<I>where I: Send,

§

impl<I> Send for Intersperse<I>where I: Send, <I as Iterator>::Item: Send,

§

impl<I> Send for Peekable<I>where I: Send, <I as Iterator>::Item: Send,

§

impl<I> Send for Skip<I>where I: Send,

§

impl<I> Send for StepBy<I>where I: Send,

§

impl<I> Send for Take<I>where I: Send,

§

impl<I, F> Send for FilterMap<I, F>where F: Send, I: Send,

§

impl<I, F> Send for Inspect<I, F>where F: Send, I: Send,

§

impl<I, F> Send for Map<I, F>where F: Send, I: Send,

§

impl<I, G> Send for IntersperseWith<I, G>where G: Send, I: Send, <I as Iterator>::Item: Send,

§

impl<I, P> Send for Filter<I, P>where I: Send, P: Send,

§

impl<I, P> Send for MapWhile<I, P>where I: Send, P: Send,

§

impl<I, P> Send for SkipWhile<I, P>where I: Send, P: Send,

§

impl<I, P> Send for TakeWhile<I, P>where I: Send, P: Send,

§

impl<I, St, F> Send for Scan<I, St, F>where F: Send, I: Send, St: Send,

§

impl<I, U, F> Send for FlatMap<I, U, F>where F: Send, I: Send, <U as IntoIterator>::IntoIter: Send,

§

impl<I, const N: usize> Send for cairo_vm::with_std::iter::ArrayChunks<I, N>where I: Send, <I as Iterator>::Item: Send,

§

impl<Idx> Send for 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, V, S> Send for HashMap<K, V, S>where K: Send, S: Send, V: Send,

§

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

§

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

§

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

§

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

§

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

§

impl<T> Send for Empty<T>

§

impl<T> Send for cairo_vm::with_std::iter::Once<T>where T: Send,

§

impl<T> Send for Rev<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 cairo_vm::with_std::result::IntoIter<T>where T: Send,

§

impl<T> Send for cairo_vm::with_std::sync::mpsc::IntoIter<T>where T: Send,

§

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

§

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

§

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

§

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

§

impl<T, E> Send for Result<T, E>where E: Send, T: Send,

§

impl<T, F> Send for LazyCell<T, F>where F: Send, T: Send,

§

impl<T, F> Send for Successors<T, F>where F: Send, T: Send,

§

impl<T, F> Send for LazyLock<T, F>where F: Send, T: Send,

§

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

§

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

§

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

§

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

§

impl<T: ?Sized> Send for Exclusive<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,