pub enum SecurityProfileError {
Io {
path: PathBuf,
source: Error,
},
Pki(PkiError),
PkiSecurity(SecurityError),
Permissions(PermissionsError),
GovernanceUtf8(Utf8Error),
}Expand description
Error paths when building a SecurityProfile from files.
Variants§
Io
std::fs::read failed on path.
Pki(PkiError)
The PKI layer rejected the cert/key bundle (chain, algo, format).
PkiSecurity(SecurityError)
The PKI plugin (or a sub-plugin underneath) rejected the
handshake/identity setup path with a SecurityError
— typically a wrapper around PkiError.
Permissions(PermissionsError)
The permissions/governance layer rejected the XML/CMS.
GovernanceUtf8(Utf8Error)
The verified governance XML was not valid UTF-8.
Trait Implementations§
Source§impl Debug for SecurityProfileError
impl Debug for SecurityProfileError
Source§impl Display for SecurityProfileError
impl Display for SecurityProfileError
Source§impl Error for SecurityProfileError
impl Error for SecurityProfileError
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<PermissionsError> for SecurityProfileError
impl From<PermissionsError> for SecurityProfileError
Source§fn from(e: PermissionsError) -> Self
fn from(e: PermissionsError) -> Self
Converts to this type from the input type.
Source§impl From<PkiError> for SecurityProfileError
impl From<PkiError> for SecurityProfileError
Source§impl From<SecurityError> for SecurityProfileError
impl From<SecurityError> for SecurityProfileError
Source§fn from(e: SecurityError) -> Self
fn from(e: SecurityError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SecurityProfileError
impl !UnwindSafe for SecurityProfileError
impl Freeze for SecurityProfileError
impl Send for SecurityProfileError
impl Sync for SecurityProfileError
impl Unpin for SecurityProfileError
impl UnsafeUnpin for SecurityProfileError
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