pub struct PsaError {
pub code: PsaResultCode,
pub detail_status: Option<i32>,
}Expand description
Carries a normalized PSA error class and optional backend detail.
Fields§
§code: PsaResultCodeNormalized status class for API consumers.
detail_status: Option<i32>Optional backend-specific numeric status code.
Implementations§
Source§impl PsaError
impl PsaError
Sourcepub fn new(code: PsaResultCode, detail_status: Option<i32>) -> Self
pub fn new(code: PsaResultCode, detail_status: Option<i32>) -> Self
Sourcepub fn to_noxtls_error(&self) -> Error
pub fn to_noxtls_error(&self) -> Error
Converts this PSA error to a noxtls-core error with uniform posture.
§Arguments
self- Error instance produced by PSA wrapper or provider layers.
§Returns
A noxtls_core::Error suited for protocol/provider integration.
Trait Implementations§
impl Eq for PsaError
impl StructuralPartialEq for PsaError
Auto Trait Implementations§
impl Freeze for PsaError
impl RefUnwindSafe for PsaError
impl Send for PsaError
impl Sync for PsaError
impl Unpin for PsaError
impl UnsafeUnpin for PsaError
impl UnwindSafe for PsaError
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