pub struct EnclaveConfig {
pub platform: TeePlatform,
pub expected_measurement: Option<[u8; 32]>,
pub min_svn: u16,
pub allow_debug: bool,
pub heap_size: usize,
pub stack_size: usize,
pub num_tcs: u32,
}Expand description
Configuration for the secure enclave
Fields§
§platform: TeePlatformTarget platform
expected_measurement: Option<[u8; 32]>Enclave measurement for verification
min_svn: u16Minimum security version
allow_debug: boolAllow debug mode (NEVER in production!)
heap_size: usizeHeap size in bytes
stack_size: usizeStack size in bytes
num_tcs: u32Number of TCS (Thread Control Structures)
Trait Implementations§
Source§impl Clone for EnclaveConfig
impl Clone for EnclaveConfig
Source§fn clone(&self) -> EnclaveConfig
fn clone(&self) -> EnclaveConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnclaveConfig
impl Debug for EnclaveConfig
Auto Trait Implementations§
impl Freeze for EnclaveConfig
impl RefUnwindSafe for EnclaveConfig
impl Send for EnclaveConfig
impl Sync for EnclaveConfig
impl Unpin for EnclaveConfig
impl UnwindSafe for EnclaveConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more