pub enum PkiError {
NoRootCa,
RoleNotFound {
name: String,
},
InvalidRequest {
reason: String,
},
CertGeneration {
reason: String,
},
Internal {
reason: String,
},
Barrier(BarrierError),
}Expand description
Errors from the PKI secrets engine.
Variants§
NoRootCa
No root CA has been generated yet.
RoleNotFound
PKI role not found.
InvalidRequest
Invalid configuration or request.
CertGeneration
Certificate generation failed.
Internal
Internal engine error.
Barrier(BarrierError)
The barrier returned an error.
Trait Implementations§
Source§impl Error for PkiError
impl Error for PkiError
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<BarrierError> for PkiError
impl From<BarrierError> for PkiError
Source§fn from(source: BarrierError) -> Self
fn from(source: BarrierError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PkiError
impl RefUnwindSafe for PkiError
impl Send for PkiError
impl Sync for PkiError
impl Unpin for PkiError
impl UnwindSafe for PkiError
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