#[repr(C)]pub struct Rec<'a> {
pub context: Context,
/* private fields */
}
Fields§
§context: Context
Implementations§
source§impl Rec<'_>
impl Rec<'_>
pub fn new() -> Self
pub fn init( &mut self, owner: usize, vcpuid: usize, flags: u64, aux: [u64; 16], vttbr: u64, vmpidr: u64 ) -> Result<(), Error>
pub fn attest_state(&self) -> RmmRecAttestState
pub fn attest_challenge(&self) -> &[u8]
pub fn attest_token_offset(&self) -> usize
pub fn aux(&self, index: usize) -> u64
pub fn emulatable_abort(&self) -> RmmRecEmulatableAbort
pub fn runnable(&self) -> bool
pub fn vcpuid(&self) -> usize
pub fn owner(&self) -> Result<usize, Error>
pub fn host_call_pending(&self) -> bool
pub fn psci_pending(&self) -> bool
pub fn set_attest_state(&mut self, state: RmmRecAttestState)
pub fn set_attest_challenge(&mut self, challenge: &[u8])
pub fn set_attest_offset(&mut self, offset: usize)
pub fn set_emulatable_abort(&mut self, val: RmmRecEmulatableAbort)
pub fn set_host_call_pending(&mut self, val: bool)
pub fn set_psci_pending(&mut self, val: bool)
pub fn set_ripas(&mut self, start: u64, end: u64, state: u8, flags: u64)
pub fn set_vtcr(&mut self, vtcr: u64)
pub fn set_runnable(&mut self, flags: u64)
pub fn set_state(&mut self, state: State)
pub fn get_state(&self) -> State
pub fn set_ripas_addr(&mut self, addr: u64)
pub fn ripas_addr(&self) -> u64
pub fn ripas_start(&self) -> u64
pub fn ripas_end(&self) -> u64
pub fn ripas_state(&self) -> u8
pub fn ripas_flags(&self) -> u64
pub fn vtcr(&self) -> u64
pub fn realmid(&self) -> Result<usize, Error>
pub fn ipa_bits(&self) -> Result<usize, Error>
pub fn from_current(&mut self)
pub fn into_current(&self)
pub fn reset_ctx(&mut self)
Trait Implementations§
source§impl SafetyAssured for Rec<'_>
impl SafetyAssured for Rec<'_>
source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Checks if the instance is properly initialized. Read more
source§fn verify_ownership(&self) -> bool
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 Rec<'_>
impl SafetyChecked for Rec<'_>
fn is_not_null(&self) -> bool
fn is_aligned(&self) -> bool
impl Content for Rec<'_>
Auto Trait Implementations§
impl<'a> !Freeze for Rec<'a>
impl<'a> !RefUnwindSafe for Rec<'a>
impl<'a> Send for Rec<'a>
impl<'a> !Sync for Rec<'a>
impl<'a> Unpin for Rec<'a>
impl<'a> UnwindSafe for Rec<'a>
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