pub fn measure(self) -> Result<Launcher<'a, Measured, U, V>> {
        let mut measurement = MaybeUninit::uninit();
        let mut launch_measure = LaunchMeasure::new(&mut measurement);
        let mut cmd = Command::from_mut(self.sev, &mut launch_measure);
        LAUNCH_MEASUREMENT
            .ioctl(self.vm_fd, &mut cmd)
            .map_err(|e| cmd.encapsulate(e))?;

        let next = Launcher {
            state: Measured(self.state.0, unsafe { measurement.assume_init() }),
            vm_fd: self.vm_fd,
            sev: self.sev,
        };

        Ok(next)
    }
/// Request a measurement from the SEV firmware.
Request a measurement from the SEV firmware.
Request a measurement from the SEV firmware .
pub fn measure(self) -> Result<Launcher<'a, Measured, U, V>> {
        let mut measurement = MaybeUninit::uninit();
        let mut launch_measure = LaunchMeasure::new(&mut measurement);
        let mut cmd = Command::from_mut(self.sev, &mut launch_measure);
        LAUNCH_MEASUREMENT
            .ioctl(self.vm_fd, &mut cmd)
            .map_err(|e| cmd.encapsulate(e))?;
        let next = Launcher {
            state: Measured(self.state.0, unsafe { measurement.assume_init() }),
            vm_fd: self.vm_fd,
            sev: self.sev,
        };
        Ok(next)
    }
pub fn measure ( self ) -> Result < Launcher < ' a , Measured , U , V > > { let mut measurement = MaybeUninit :: uninit ( ) ; let mut launch_measure = LaunchMeasure :: new ( & mut measurement ) ; let mut cmd = Command :: from_mut ( self . sev , & mut launch_measure ) ; LAUNCH_MEASUREMENT . ioctl ( self . vm_fd , & mut cmd ) . map_err ( | e | cmd . encapsulate ( e ) ) ? ; let next = Launcher { state : Measured ( self . state . 0 , unsafe { measurement . assume_init ( ) } ) , vm_fd : self . vm_fd , sev : self . sev , } ; Ok ( next ) }
Request a measurement from the SEV firmware.
Request a measurement from the SEV firmware .
self