Struct islet_rmm::rec::Rec

source ·
#[repr(C)]
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 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> 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

§

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.