enum MainThreadState<'tcx> {
Running,
TlsDtors(TlsDtorsState<'tcx>),
Yield {
remaining: u32,
},
Done,
}
Expand description
The state of the main thread. Implementation detail of on_main_stack_empty
.
Variants§
Implementations§
Source§impl<'tcx> MainThreadState<'tcx>
impl<'tcx> MainThreadState<'tcx>
fn on_main_stack_empty( &mut self, this: &mut MiriInterpCx<'tcx>, ) -> InterpResult<'tcx, Poll<()>>
Trait Implementations§
Source§impl<'tcx> Debug for MainThreadState<'tcx>
impl<'tcx> Debug for MainThreadState<'tcx>
Source§impl<'tcx> Default for MainThreadState<'tcx>
impl<'tcx> Default for MainThreadState<'tcx>
Source§fn default() -> MainThreadState<'tcx>
fn default() -> MainThreadState<'tcx>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'tcx> Freeze for MainThreadState<'tcx>
impl<'tcx> !RefUnwindSafe for MainThreadState<'tcx>
impl<'tcx> Send for MainThreadState<'tcx>
impl<'tcx> Sync for MainThreadState<'tcx>
impl<'tcx> Unpin for MainThreadState<'tcx>
impl<'tcx> !UnwindSafe for MainThreadState<'tcx>
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: 48 bytes
Size for each variant:
Running
: 0 bytesTlsDtors
: 48 bytesYield
: 12 bytesDone
: 0 bytes