pub enum KeyError {
KeyNotFound {
name: String,
},
KeyIdNotFound {
key_id: String,
},
KeyNotActive {
name: String,
status: KeyStatus,
},
PurposeMismatch {
expected: KeyPurpose,
actual: KeyPurpose,
},
KeyExpired {
key_id: String,
},
KeyRevoked {
key_id: String,
},
}Expand description
密钥管理错误
Variants§
KeyNotFound
密钥名称不存在
KeyIdNotFound
密钥 ID 不存在
KeyNotActive
密钥状态不允许操作
PurposeMismatch
密钥用途不匹配
KeyExpired
密钥已过期
KeyRevoked
密钥已吊销
Trait Implementations§
impl Eq for KeyError
Source§impl Error for KeyError
impl Error for KeyError
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()
impl StructuralPartialEq for KeyError
Auto Trait Implementations§
impl Freeze for KeyError
impl RefUnwindSafe for KeyError
impl Send for KeyError
impl Sync for KeyError
impl Unpin for KeyError
impl UnsafeUnpin for KeyError
impl UnwindSafe for KeyError
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