pub struct KeyType(_);
Expand description
Identifiers for the type of key or object getting signed.
Implementations
sourceimpl KeyType
impl KeyType
sourcepub const ED25519_KEY: KeyType
pub const ED25519_KEY: KeyType
Identifier for an Ed25519 key.
sourcepub const SHA256_OF_RSA: KeyType
pub const SHA256_OF_RSA: KeyType
Identifier for the SHA256 of an DER-encoded RSA key.
sourcepub const SHA256_OF_X509: KeyType
pub const SHA256_OF_X509: KeyType
Identifies the SHA256 of an X.509 certificate.
sourcepub fn is_recognized(self) -> bool
pub fn is_recognized(self) -> bool
Return true if this value is one that we recognize.
Trait Implementations
impl Copy for KeyType
impl Eq for KeyType
impl StructuralEq for KeyType
impl StructuralPartialEq for KeyType
Auto Trait Implementations
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnwindSafe for KeyType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more