#[non_exhaustive]pub enum InconsistentKeys {
KeyMismatch,
Unknown,
}展开描述
Specific failure cases 从 keys_match 或 一个 crate::crypto::signer::SigningKey that cannot produce 一个 corresponding 公钥.
变体 (Non-exhaustive)§
This enum is marked as non-exhaustive
非穷尽枚举未来可能添加新的变体。因此,在对非穷尽枚举的变体进行模式匹配时,必须额外增加一个通配符分支以涵盖未来的新变体。
KeyMismatch
此 公钥 returned by the SigningKey does not match the 公钥 information in 证书.
Unknown
此 SigningKey cannot produce its corresponding 公钥.
Trait 实现§
Source§impl Clone for InconsistentKeys
impl Clone for InconsistentKeys
Source§fn clone(&self) -> InconsistentKeys
fn clone(&self) -> InconsistentKeys
返回值的副本。 更多信息
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment 从
source. 更多信息Source§impl Debug for InconsistentKeys
impl Debug for InconsistentKeys
Source§impl From<InconsistentKeys> for Error
impl From<InconsistentKeys> for Error
Source§fn from(e: InconsistentKeys) -> Self
fn from(e: InconsistentKeys) -> Self
从输入类型转换为此类型。
Source§impl PartialEq for InconsistentKeys
impl PartialEq for InconsistentKeys
impl Copy for InconsistentKeys
impl Eq for InconsistentKeys
impl StructuralPartialEq for InconsistentKeys
自动 Trait 实现§
impl Freeze for InconsistentKeys
impl RefUnwindSafe for InconsistentKeys
impl Send for InconsistentKeys
impl Sync for InconsistentKeys
impl Unpin for InconsistentKeys
impl UnsafeUnpin for InconsistentKeys
impl UnwindSafe for InconsistentKeys
Blanket 实现§
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 从 an owned value. 更多信息