Struct dryoc::protected::Protected [−][src]
This is supported on crate feature
nightly
only.Expand description
Holds Protected region of memory. Does not implement traits such as Copy, Clone, or std::fmt::Debug.
Trait Implementations
impl<const LENGTH: usize> ByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadOnly, Unlocked>
impl<const LENGTH: usize> ByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadOnly, Unlocked>
impl<const LENGTH: usize> ByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadOnly, Locked>
impl<const LENGTH: usize> ByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadOnly, Locked>
impl<const LENGTH: usize> ByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Unlocked>
impl<const LENGTH: usize> ByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Unlocked>
impl<const LENGTH: usize> ByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Locked>
impl<const LENGTH: usize> ByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Locked>
Locks a region of memory, using mlock()
on UNIX, or VirtualLock()
on
Windows. By default, the protect mode is set to ReadWrite (i.e., no
exec) using mprotect()
on UNIX, or VirtualProtect()
on Windows.
On Linux, it will also set MADV_DONTDUMP
using madvise()
. Read more
impl<const LENGTH: usize> MutByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Locked>
impl<const LENGTH: usize> MutByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Locked>
Returns a mutable reference to the underlying fixed-length byte array.
impl<const LENGTH: usize> MutByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Unlocked>
impl<const LENGTH: usize> MutByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Unlocked>
Returns a mutable reference to the underlying fixed-length byte array.
impl<const LENGTH: usize> NewByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Locked>
impl<const LENGTH: usize> NewByteArray<LENGTH> for Protected<HeapByteArray<LENGTH>, ReadWrite, Locked>
Returns a new fixed-length byte array, initialized with zeroes.
impl<A: Zeroize + Bytes, PM: ProtectMode> ProtectNoAccess<A, PM> for Protected<A, PM, Unlocked>
impl<A: Zeroize + Bytes, PM: ProtectMode> ProtectNoAccess<A, PM> for Protected<A, PM, Unlocked>
impl<A: Zeroize + Bytes, PM: ProtectMode, LM: LockMode> ProtectReadOnly<A, PM, LM> for Protected<A, PM, LM>
impl<A: Zeroize + Bytes, PM: ProtectMode, LM: LockMode> ProtectReadOnly<A, PM, LM> for Protected<A, PM, LM>
impl<A: Zeroize + Bytes, PM: ProtectMode, LM: LockMode> ProtectReadWrite<A, PM, LM> for Protected<A, PM, LM>
impl<A: Zeroize + Bytes, PM: ProtectMode, LM: LockMode> ProtectReadWrite<A, PM, LM> for Protected<A, PM, LM>
impl<A: Zeroize + NewBytes + ResizableBytes + Lockable<A>> ResizableBytes for Protected<A, ReadWrite, Locked>
impl<A: Zeroize + NewBytes + ResizableBytes + Lockable<A>> ResizableBytes for Protected<A, ReadWrite, Locked>
impl<A: Zeroize + NewBytes + ResizableBytes + Lockable<A>> ResizableBytes for Protected<A, ReadWrite, Unlocked>
impl<A: Zeroize + NewBytes + ResizableBytes + Lockable<A>> ResizableBytes for Protected<A, ReadWrite, Unlocked>
Auto Trait Implementations
impl<A, PM, LM> RefUnwindSafe for Protected<A, PM, LM> where
A: RefUnwindSafe,
LM: RefUnwindSafe,
PM: RefUnwindSafe,
impl<A, PM, LM> UnwindSafe for Protected<A, PM, LM> where
A: UnwindSafe,
LM: UnwindSafe,
PM: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more