pub type LockedRO<T> = Protected<T, ReadOnly, Locked>;
Available on crate feature nightly
only.
Expand description
Locked, read-only, page-aligned memory region type alias
struct LockedRO<T> { }
Performs copy-assignment from
source
.
Read more
Serialize this value into the given Serde serializer.
Read more
Converts this type into a shared reference of the (usually inferred) input type.
Returns a reference to the underlying fixed-length byte array.
Returns a slice of the underlying bytes.
Shorthand to retrieve the underlying length of the byte array.
Returns true if the array is empty.
Executes the destructor for this type.
Read more
Protects a region of memory as read-only (and no exec), using
mprotect()
on UNIX, or VirtualProtect()
on Windows.
Protects a region of memory as read-write (and no exec), using
mprotect()
on UNIX, or VirtualProtect()
on Windows.
Unlocks a region of memory, using munlock()
on UNIX, or
VirtualLock()
on Windows.
Zero out this object from memory using Rust intrinsics which ensure the
zeroization operation is not “optimized away” by the compiler.
The resulting type after dereferencing.
Dereferences the value.