pub struct MemoryLockError {
pub operation: MemoryLockOperation,
pub errno: i32,
}Expand description
Error returned by platform memory-locking operations.
If setup and the subsequent cleanup unmap both fail, the returned error
reports Unmap. A mapping that may still be live takes diagnostic
precedence over the original setup failure.
Fields§
§operation: MemoryLockOperationOperation that failed.
errno: i32Positive errno or Windows GetLastError value when available.
This is 0 for local arithmetic failures before a syscall.
Negative values are crate-internal sentinel failures, such as an
unsupported random-canary backend or a random backend that made no
progress.
Trait Implementations§
Source§impl Clone for MemoryLockError
impl Clone for MemoryLockError
Source§fn clone(&self) -> MemoryLockError
fn clone(&self) -> MemoryLockError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryLockError
Source§impl Debug for MemoryLockError
impl Debug for MemoryLockError
Source§impl Display for MemoryLockError
impl Display for MemoryLockError
impl Eq for MemoryLockError
Source§impl Error for MemoryLockError
Available on crate feature std only.
impl Error for MemoryLockError
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<MemoryLockError> for LockedSecretBytesError
impl From<MemoryLockError> for LockedSecretBytesError
Source§fn from(error: MemoryLockError) -> Self
fn from(error: MemoryLockError) -> Self
Converts to this type from the input type.
Source§impl<E> From<MemoryLockError> for LockedSecretBytesGenerateError<E>
impl<E> From<MemoryLockError> for LockedSecretBytesGenerateError<E>
Source§fn from(error: MemoryLockError) -> Self
fn from(error: MemoryLockError) -> Self
Converts to this type from the input type.
Source§impl<E> From<MemoryLockError> for LockedSecretVecGenerateError<E>
impl<E> From<MemoryLockError> for LockedSecretVecGenerateError<E>
Source§fn from(error: MemoryLockError) -> Self
fn from(error: MemoryLockError) -> Self
Converts to this type from the input type.
Source§impl<E> From<MemoryLockError> for LockedSecretVecFillError<E>
impl<E> From<MemoryLockError> for LockedSecretVecFillError<E>
Source§fn from(error: MemoryLockError) -> Self
fn from(error: MemoryLockError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MemoryLockError
impl PartialEq for MemoryLockError
impl StructuralPartialEq for MemoryLockError
Auto Trait Implementations§
impl Freeze for MemoryLockError
impl RefUnwindSafe for MemoryLockError
impl Send for MemoryLockError
impl Sync for MemoryLockError
impl Unpin for MemoryLockError
impl UnsafeUnpin for MemoryLockError
impl UnwindSafe for MemoryLockError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more