pub struct GuardPageError {
pub operation: GuardPageOperation,
pub errno: i32,
}Expand description
Error returned by guarded secret allocation 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: GuardPageOperationOperation 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 GuardPageError
impl Clone for GuardPageError
impl Copy for GuardPageError
Source§impl Debug for GuardPageError
impl Debug for GuardPageError
Source§impl Display for GuardPageError
impl Display for GuardPageError
impl Eq for GuardPageError
Source§impl Error for GuardPageError
Available on crate feature std only.
impl Error for GuardPageError
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<GuardPageError> for SecretIntegrityError<GuardPageError>
impl From<GuardPageError> for SecretIntegrityError<GuardPageError>
Source§fn from(error: GuardPageError) -> Self
fn from(error: GuardPageError) -> Self
Converts to this type from the input type.
Source§impl<E> From<GuardPageError> for GuardedSecretVecGenerateError<E>
impl<E> From<GuardPageError> for GuardedSecretVecGenerateError<E>
Source§fn from(error: GuardPageError) -> Self
fn from(error: GuardPageError) -> Self
Converts to this type from the input type.
Source§impl From<GuardPageError> for SealedSecretAccessError
Available on crate feature page-seal only.
impl From<GuardPageError> for SealedSecretAccessError
Available on crate feature
page-seal only.Source§fn from(error: GuardPageError) -> Self
fn from(error: GuardPageError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GuardPageError
impl PartialEq for GuardPageError
impl StructuralPartialEq for GuardPageError
Auto Trait Implementations§
impl Forget for GuardPageError
impl Freeze for GuardPageError
impl Move for GuardPageError
impl RefUnwindSafe for GuardPageError
impl Send for GuardPageError
impl Sync for GuardPageError
impl Unpin for GuardPageError
impl UnsafeUnpin for GuardPageError
impl UnwindSafe for GuardPageError
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