🔬This is a nightly-only experimental API. (
sgx_platform #56975)Available on Fortanix and SGX only.
Expand description
Primitives for allocating memory in userspace as well as copying data to and from user memory.
Structs§
- Iter
Experimental - Immutable user slice iterator
- IterMut
Experimental - Mutable user slice iterator
- User
Experimental - An owned type in userspace memory.
User<T>is equivalent toBox<T>in enclave memory. Access to the memory is only allowed by copying to avoid TOCTTOU issues. The user memory will be freed when the value is dropped. After copying, code should make sure to completely check the value before use. - UserRef
Experimental - A reference to some type in userspace memory.
&UserRef<T>is equivalent to&Tin enclave memory. Access to the memory is only allowed by copying to avoid TOCTTOU issues. After copying, code should make sure to completely check the value before use.
Traits§
- User
Safe Experimental - A type that can be represented in memory as one or more
UserSafeSizeds. - User
Safe Copy Destination Experimental - A type which can a destination for safely copying from userspace.
- User
Safe Sized Experimental - A type that can be safely read from or written to userspace.