#[non_exhaustive]pub enum KeyUsage {
DigitalSignature,
NonRepudiation,
KeyEncipherment,
DataEncipherment,
KeyAgreement,
KeyCertSign,
CrlSign,
EncipherOnly,
DecipherOnly,
}Expand description
A KeyUsage bit (RFC 5280 §4.2.1.3).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DigitalSignature
Bit 0.
NonRepudiation
Bit 1 (contentCommitment).
KeyEncipherment
Bit 2.
DataEncipherment
Bit 3.
KeyAgreement
Bit 4.
KeyCertSign
Bit 5.
CrlSign
Bit 6.
EncipherOnly
Bit 7.
DecipherOnly
Bit 8.
Implementations§
Trait Implementations§
impl Copy for KeyUsage
impl Eq for KeyUsage
impl StructuralPartialEq for KeyUsage
Auto Trait Implementations§
impl Forget for KeyUsage
impl Freeze for KeyUsage
impl Move for KeyUsage
impl RefUnwindSafe for KeyUsage
impl Send for KeyUsage
impl Sync for KeyUsage
impl Unpin for KeyUsage
impl UnsafeUnpin for KeyUsage
impl UnwindSafe for KeyUsage
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