Enum miri::eval::MainThreadState
source · enum MainThreadState {
Running,
TlsDtors(TlsDtorsState),
Yield {
remaining: u32,
},
Done,
}
Expand description
The state of the main thread. Implementation detail of on_main_stack_empty
.
Variants§
Implementations§
source§impl MainThreadState
impl MainThreadState
fn on_main_stack_empty<'tcx>( &mut self, this: &mut MiriInterpCx<'_, 'tcx> ) -> InterpResult<'tcx, Poll<()>>
Trait Implementations§
source§impl Debug for MainThreadState
impl Debug for MainThreadState
source§impl Default for MainThreadState
impl Default for MainThreadState
source§fn default() -> MainThreadState
fn default() -> MainThreadState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for MainThreadState
impl Send for MainThreadState
impl Sync for MainThreadState
impl Unpin for MainThreadState
impl UnwindSafe for MainThreadState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Running
: 0 bytesTlsDtors
: 32 bytesYield
: 20 bytesDone
: 0 bytes