Skip to main content

Load

Trait Load 

Source
pub trait Load {
    type MappingInfo: MappingInfo;
    type Tcs: Tcs;

    // Required method
    fn load<R: SgxsRead>(
        &mut self,
        reader: &mut R,
        sigstruct: &Sigstruct,
        attributes: Attributes,
        miscselect: Miscselect,
    ) -> Result<Mapping<Self>, Error>;
}
Expand description

An interface that is able to load an enclave into memory.

Required Associated Types§

Required Methods§

Source

fn load<R: SgxsRead>( &mut self, reader: &mut R, sigstruct: &Sigstruct, attributes: Attributes, miscselect: Miscselect, ) -> Result<Mapping<Self>, Error>

Load an enclave.

The enclave will be unloaded once all returned values are dropped.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: Load> Load for &mut T

Source§

fn load<R: SgxsRead>( &mut self, reader: &mut R, sigstruct: &Sigstruct, attributes: Attributes, miscselect: Miscselect, ) -> Result<Mapping<Self>, Error>

Load an enclave.

The enclave will be unloaded once all returned values are dropped.

Source§

type MappingInfo = <T as Load>::MappingInfo

Source§

type Tcs = <T as Load>::Tcs

Implementors§