pub struct Rd {
pub measurements: [Measurement; 5],
pub vcpus: Vec<Arc<Mutex<VCPU>>>,
/* private fields */
}
Fields§
§measurements: [Measurement; 5]
§vcpus: Vec<Arc<Mutex<VCPU>>>
Implementations§
source§impl Rd
impl Rd
pub fn init( &mut self, vmid: u16, rtt_base: usize, ipa_bits: usize, s2_starting_level: isize, s2_table: Arc<Mutex<Box<dyn IPATranslation>>> )
pub fn id(&self) -> usize
pub fn s2_table(&self) -> &Arc<Mutex<Box<dyn IPATranslation>>>
pub fn state(&self) -> State
pub fn set_state(&mut self, state: State)
pub fn at_state(&self, compared: State) -> bool
pub fn rtt_base(&self) -> usize
pub fn ipa_bits(&self) -> usize
pub fn rec_index(&self) -> usize
pub fn s2_starting_level(&self) -> isize
pub fn inc_rec_index(&mut self)
pub fn addr_in_par(&self, addr: usize) -> bool
pub fn hash_algo(&self) -> u8
pub fn set_hash_algo(&mut self, alg: u8)
Trait Implementations§
Auto Trait Implementations§
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> 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