Struct islet_rmm::realm::rd::Rd

source ·
pub struct Rd {
    pub measurements: [Measurement; 5],
    pub vcpu_index: usize,
    /* private fields */
}

Fields§

§measurements: [Measurement; 5]§vcpu_index: usize

Implementations§

source§

impl Rd

source

pub fn init( &mut self, vmid: u16, rtt_base: usize, rtt_num_start: usize, ipa_bits: usize, s2_starting_level: isize, rpv: [u8; 64] )

source

pub fn id(&self) -> usize

source

pub fn s2_table(&self) -> Arc<Mutex<Box<dyn IPATranslation>>>

source

pub fn state(&self) -> State

source

pub fn set_state(&mut self, state: State)

source

pub fn at_state(&self, compared: State) -> bool

source

pub fn rtt_base(&self) -> usize

source

pub fn rtt_num_start(&self) -> usize

source

pub fn ipa_bits(&self) -> usize

source

pub fn rec_index(&self) -> usize

source

pub fn s2_starting_level(&self) -> isize

source

pub fn inc_rec_index(&mut self)

source

pub fn ipa_size(&self) -> usize

source

pub fn par_size(&self) -> usize

source

pub fn addr_in_par(&self, ipa: usize) -> bool

source

pub fn hash_algo(&self) -> u8

source

pub fn set_hash_algo(&mut self, alg: u8)

source

pub fn personalization_value(&self) -> &[u8]

Trait Implementations§

source§

impl Debug for Rd

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl RawPtr for Rd

§

unsafe fn as_ref<'a, T>(addr: usize) -> &'a T
where T: RawPtr,

Safety Read more
§

unsafe fn as_mut<'a, T>(addr: usize) -> &'a mut T
where T: RawPtr,

Safety Read more
§

fn addr(&self) -> usize

source§

impl SafetyAssured for Rd

source§

fn is_initialized(&self) -> bool

Checks if the instance is properly initialized. Read more
source§

fn verify_ownership(&self) -> bool

Checks whether ownership rules are upheld for this instance, with a particular focus on instances that originate from raw pointers. Read more
source§

impl SafetyChecked for Rd

§

fn is_not_null(&self) -> bool

§

fn is_aligned(&self) -> bool

source§

impl Content for Rd

Auto Trait Implementations§

§

impl Freeze for Rd

§

impl RefUnwindSafe for Rd

§

impl Send for Rd

§

impl Sync for Rd

§

impl Unpin for Rd

§

impl UnwindSafe for Rd

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.