Skip to main content

Rec

Struct Rec 

Source
pub struct Rec<'a> {
    pub context: Context,
    /* private fields */
}

Fields§

§context: Context

Implementations§

Source§

impl Rec<'_>

Source

pub fn new() -> Self

Source

pub fn init( &mut self, owner: usize, vcpuid: usize, flags: u64, aux: [u64; 16], vttbr: u64, vmpidr: u64, ) -> Result<(), Error>

Source

pub fn attest_state(&self) -> RmmRecAttestState

Source

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

Source

pub fn attest_token_offset(&self) -> usize

Source

pub fn aux(&self, index: usize) -> u64

Source

pub fn emulatable_abort(&self) -> RmmRecEmulatableAbort

Source

pub fn runnable(&self) -> bool

Source

pub fn vcpuid(&self) -> usize

Source

pub fn owner(&self) -> Result<usize, Error>

Source

pub fn host_call_pending(&self) -> bool

Source

pub fn psci_pending(&self) -> bool

Source

pub fn set_attest_state(&mut self, state: RmmRecAttestState)

Source

pub fn set_attest_challenge(&mut self, challenge: &[u8])

Source

pub fn set_attest_offset(&mut self, offset: usize)

Source

pub fn set_emulatable_abort(&mut self, val: RmmRecEmulatableAbort)

Source

pub fn set_host_call_pending(&mut self, val: bool)

Source

pub fn set_psci_pending(&mut self, val: bool)

Source

pub fn set_ripas(&mut self, start: u64, end: u64, state: u8, flags: u64)

Source

pub fn set_vtcr(&mut self, vtcr: u64)

Source

pub fn set_runnable(&mut self, flags: u64)

Source

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

Source

pub fn get_state(&self) -> State

Source

pub fn set_ripas_addr(&mut self, addr: u64)

Source

pub fn ripas_addr(&self) -> u64

Source

pub fn ripas_start(&self) -> u64

Source

pub fn ripas_end(&self) -> u64

Source

pub fn ripas_state(&self) -> u8

Source

pub fn ripas_flags(&self) -> u64

Source

pub fn vtcr(&self) -> u64

Source

pub fn realmid(&self) -> Result<usize, Error>

Source

pub fn ipa_bits(&self) -> Result<usize, Error>

Source

pub fn pmu_config(&self) -> Result<(bool, usize), Error>

Source

pub fn from_current(&mut self)

Source

pub fn into_current(&self)

Source

pub fn reset_ctx(&mut self)

Trait Implementations§

Source§

impl<'a> Debug for Rec<'a>

Source§

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

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

impl RawPtr for Rec<'_>

§

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 Rec<'_>

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 Rec<'_>

§

fn is_not_null(&self) -> bool

§

fn is_aligned(&self) -> bool

Source§

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> UnsafeUnpin for Rec<'a>

§

impl<'a> UnwindSafe for Rec<'a>

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

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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.