Trait sgxs::loader::Load [−][src]
pub trait Load {
type MappingInfo: MappingInfo;
type Tcs: Tcs;
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.
Associated Types
type MappingInfo: MappingInfo
Required methods
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.