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§
type MappingInfo: MappingInfo
type Tcs: Tcs
Required Methods§
Sourcefn load<R: SgxsRead>(
&mut self,
reader: &mut R,
sigstruct: &Sigstruct,
attributes: Attributes,
miscselect: Miscselect,
) -> Result<Mapping<Self>, Error>
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
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>
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.