pub struct EnclaveImport<'a> { /* private fields */ }
Expand description

This structure represents an entry in the array of images that an enclave can import.

Implementations§

§

impl EnclaveImport<'_>

pub fn get_type(&self) -> Type

The type of identifier of the image that must match the value in the import record.

pub fn min_security_version(&self) -> u32

The minimum enclave security version that each image must have for the image to be imported successfully. The image is rejected unless its enclave security version is equal to or greater than the minimum value in the import record. Set the value in the import record to zero to turn off the security version check.

pub fn import_name_rva(&self) -> u32

The relative virtual address of a NULL-terminated string that contains the same value found in the import directory for the image.

pub fn import_name(&self) -> String

Resolved import name

pub fn reserved(&self) -> u32

Reserved. Should be 0

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

The unique identifier of the primary module for the enclave, if the EnclaveImport::get_type is Type::UNIQUE_ID. Otherwise, the author identifier of the primary module for the enclave.

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

The family identifier of the primary module for the enclave.

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

The image identifier of the primary module for the enclave.

Trait Implementations§

§

impl Debug for EnclaveImport<'_>

§

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

Formats the value using the given formatter. Read more
§

impl Display for EnclaveImport<'_>

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for EnclaveImport<'a>

§

impl<'a> !Send for EnclaveImport<'a>

§

impl<'a> !Sync for EnclaveImport<'a>

§

impl<'a> Unpin for EnclaveImport<'a>

§

impl<'a> !UnwindSafe for EnclaveImport<'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> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
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.