Struct sgx_urts::enclave::SgxEnclave
source · [−]pub struct SgxEnclave { /* private fields */ }
Implementations
sourceimpl SgxEnclave
impl SgxEnclave
pub fn create<P: AsRef<Path>>(path: P, debug: bool) -> SgxResult<SgxEnclave>
pub fn create_with_features<P: AsRef<Path>>(
path: P,
debug: bool,
features: ExtFeatures
) -> SgxResult<SgxEnclave>
pub fn create_from_buffer<B: AsRef<[u8]>>(
buffer: B,
debug: bool,
features: ExtFeatures
) -> SgxResult<SgxEnclave>
pub fn create_with_switchless<P: AsRef<Path>>(
path: P,
debug: bool,
uworkers: u32,
tworkers: u32
) -> SgxResult<SgxEnclave>
pub fn eid(&self) -> EnclaveId
pub fn path(&self) -> Option<PathBuf>
pub fn misc_attr(&self) -> Option<MiscAttribute>
pub fn target_info(&self) -> SgxResult<TargetInfo>
pub fn metadata<P: AsRef<Path>>(path: P) -> SgxResult<MetaData>
pub fn mode() -> EnclaveMode
Trait Implementations
sourceimpl Clone for SgxEnclave
impl Clone for SgxEnclave
sourcefn clone(&self) -> SgxEnclave
fn clone(&self) -> SgxEnclave
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SgxEnclave
impl Debug for SgxEnclave
sourceimpl Default for SgxEnclave
impl Default for SgxEnclave
sourcefn default() -> SgxEnclave
fn default() -> SgxEnclave
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for SgxEnclave
impl Send for SgxEnclave
impl Sync for SgxEnclave
impl Unpin for SgxEnclave
impl UnwindSafe for SgxEnclave
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more