pub struct ProgramExitHandler<'tcx> {
state: ProgramExitState<'tcx>,
exit_code: i32,
exit_type: ExitType,
}Expand description
A state machine that’s run when the program is exiting.
Fields§
§state: ProgramExitState<'tcx>§exit_code: i32§exit_type: ExitTypeImplementations§
Source§impl<'tcx> ProgramExitHandler<'tcx>
impl<'tcx> ProgramExitHandler<'tcx>
pub fn new(exit_code: i32, exit_type: ExitType) -> Self
pub fn on_stack_empty( &mut self, ecx: &mut MiriInterpCx<'tcx>, ) -> InterpResult<'tcx, Poll<()>>
Trait Implementations§
Auto Trait Implementations§
impl<'tcx> !DynSend for ProgramExitHandler<'tcx>
impl<'tcx> !DynSync for ProgramExitHandler<'tcx>
impl<'tcx> !RefUnwindSafe for ProgramExitHandler<'tcx>
impl<'tcx> !UnwindSafe for ProgramExitHandler<'tcx>
impl<'tcx> Forget for ProgramExitHandler<'tcx>
impl<'tcx> Freeze for ProgramExitHandler<'tcx>where
*const u8 is !null: Freeze,
PhantomData<u64>: Freeze,
PhantomData<(ImmTy<'tcx, Provenance>, Span)>: Freeze,
impl<'tcx> Move for ProgramExitHandler<'tcx>
impl<'tcx> Send for ProgramExitHandler<'tcx>
impl<'tcx> Sync for ProgramExitHandler<'tcx>where
RawVecInner: Sync,
NonZero<u8>: Sync,
NonZero<u64>: Sync,
AdtDef<'tcx>: Sync,
GenericArgs<'tcx>: Sync,
DefId: Sync,
Ty<'tcx>: Sync,
Interned<'tcx, WithCachedTypeInfo<ConstKind<TyCtxt<'tcx>>>>: Sync,
Pattern<'tcx>: Sync,
Interned<'tcx, RegionKind<TyCtxt<'tcx>>>: Sync,
&'tcx RawList<(), BoundVariableKind<TyCtxt<'tcx>>>: Sync,
&'tcx RawList<(), Ty<'tcx>>: Sync,
&'tcx RawList<(), Binder<TyCtxt<'tcx>, ExistentialPredicate<TyCtxt<'tcx>>>>: Sync,
ParamTy: Sync,
ErrorGuaranteed: Sync,
InternalBitFlags: Sync,
NonZero<usize>: Sync,
NonZero<u16>: Sync,
impl<'tcx> Unpin for ProgramExitHandler<'tcx>
impl<'tcx> UnsafeUnpin for ProgramExitHandler<'tcx>where
*const u8 is !null: UnsafeUnpin,
PhantomData<u64>: UnsafeUnpin,
PhantomData<(ImmTy<'tcx, Provenance>, Span)>: UnsafeUnpin,
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: 88 bytes