pub struct Library { /* private fields */ }Implementations§
Source§impl Library
impl Library
pub fn new<P: AsRef<Path>, L: Load>( enclave_path: P, loader: &mut L, ) -> Result<Library, Error>
Sourcepub unsafe fn call(
&self,
p1: u64,
p2: u64,
p3: u64,
p4: u64,
p5: u64,
) -> Result<(u64, u64), Error>
pub unsafe fn call( &self, p1: u64, p2: u64, p3: u64, p4: u64, p5: u64, ) -> Result<(u64, u64), Error>
If this library’s TCSs are all currently servicing other calls, this function will block until a TCS becomes available.
§Safety
The caller must ensure that the parameters passed-in match what the enclave is expecting.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Library
impl !RefUnwindSafe for Library
impl !Send for Library
impl !Sync for Library
impl Unpin for Library
impl !UnwindSafe for Library
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