Skip to main content

Module alloc

Module alloc 

Source
🔬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§

IterExperimental
Immutable user slice iterator
IterMutExperimental
Mutable user slice iterator
UserExperimental
An owned type in userspace memory. User<T> is equivalent to Box<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.
UserRefExperimental
A reference to some type in userspace memory. &UserRef<T> is equivalent to &T in 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§

UserSafeExperimental
A type that can be represented in memory as one or more UserSafeSizeds.
UserSafeCopyDestinationExperimental
A type which can a destination for safely copying from userspace.
UserSafeSizedExperimental
A type that can be safely read from or written to userspace.