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>
impl<'tcx> Move for ProgramExitHandler<'tcx>
impl<'tcx> Send for ProgramExitHandler<'tcx>
impl<'tcx> Sync for ProgramExitHandler<'tcx>
impl<'tcx> Unpin for ProgramExitHandler<'tcx>
impl<'tcx> UnsafeUnpin for ProgramExitHandler<'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: 128 bytes