Struct islet_rmm::rmi::rec::Rec

source ·
pub struct Rec<'a> { /* private fields */ }

Implementations§

source§

impl Rec<'_>

source

pub fn init( &mut self, owner: usize, vcpuid: usize, flags: u64 ) -> Result<(), Error>

source

pub fn attest_state(&self) -> RmmRecAttestState

source

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

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 set_attest_state(&mut self, state: RmmRecAttestState)

source

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

source

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

source

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

source

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

source

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

source

pub fn get_state(&self) -> RecState

source

pub fn inc_ripas_addr(&mut self, size: u64)

source

pub fn ripas_addr(&mut self) -> u64

source

pub fn ripas_state(&self) -> u8

source

pub fn ripas_end(&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>

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

Auto Trait Implementations§

§

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere 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 Twhere 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.