pub trait TeeGuard {
// Required methods
fn initialize(&mut self) -> Result<(), TeeError>;
fn allocate_memory(&mut self, size: usize) -> Result<*mut u8, TeeError>;
fn write_data(&mut self, ptr: *mut u8, data: &[u8]) -> Result<(), TeeError>;
fn execute_computation(
&self,
input_ptrs: &[*const u8],
params: &ComputationParams,
) -> Result<Vec<u8>, TeeError>;
}Required Methods§
fn initialize(&mut self) -> Result<(), TeeError>
fn allocate_memory(&mut self, size: usize) -> Result<*mut u8, TeeError>
fn write_data(&mut self, ptr: *mut u8, data: &[u8]) -> Result<(), TeeError>
fn execute_computation( &self, input_ptrs: &[*const u8], params: &ComputationParams, ) -> Result<Vec<u8>, TeeError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".