Skip to main content

Locked

Type Alias Locked 

Source
pub type Locked<T> = Protected<T, ReadWrite, Locked>;
Available on crate feature protected only.
Expand description

Locked, read-write, page-aligned memory region type alias

Aliased Type§

pub struct Locked<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T: Zeroize + NewBytes + ResizableBytes + Lockable<T> + NewLocked<T>> Clone for Locked<T>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'de, const LENGTH: usize> Deserialize<'de> for Locked<HeapByteArray<LENGTH>>

Available on crate feature serde and (crate feature protected and (Unix or Windows)) only.
Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl<const LENGTH: usize> Serialize for Locked<HeapByteArray<LENGTH>>

Available on crate feature serde and (crate feature protected and (Unix or Windows)) only.
Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more