pub struct KeyUsage { /* private fields */ }Expand description
An extension consisting of a list of names of the permitted key usages.
Implementations
sourceimpl KeyUsage
impl KeyUsage
sourcepub fn critical(&mut self) -> &mut KeyUsage
pub fn critical(&mut self) -> &mut KeyUsage
Sets the critical flag to true. The extension will be critical.
sourcepub fn digital_signature(&mut self) -> &mut KeyUsage
pub fn digital_signature(&mut self) -> &mut KeyUsage
Sets the digitalSignature flag to true.
sourcepub fn non_repudiation(&mut self) -> &mut KeyUsage
pub fn non_repudiation(&mut self) -> &mut KeyUsage
Sets the nonRepudiation flag to true.
sourcepub fn key_encipherment(&mut self) -> &mut KeyUsage
pub fn key_encipherment(&mut self) -> &mut KeyUsage
Sets the keyEncipherment flag to true.
sourcepub fn data_encipherment(&mut self) -> &mut KeyUsage
pub fn data_encipherment(&mut self) -> &mut KeyUsage
Sets the dataEncipherment flag to true.
sourcepub fn key_agreement(&mut self) -> &mut KeyUsage
pub fn key_agreement(&mut self) -> &mut KeyUsage
Sets the keyAgreement flag to true.
sourcepub fn key_cert_sign(&mut self) -> &mut KeyUsage
pub fn key_cert_sign(&mut self) -> &mut KeyUsage
Sets the keyCertSign flag to true.
sourcepub fn encipher_only(&mut self) -> &mut KeyUsage
pub fn encipher_only(&mut self) -> &mut KeyUsage
Sets the encipherOnly flag to true.
sourcepub fn decipher_only(&mut self) -> &mut KeyUsage
pub fn decipher_only(&mut self) -> &mut KeyUsage
Sets the decipherOnly flag to true.
sourcepub fn build(&self) -> Result<X509Extension, ErrorStack>
pub fn build(&self) -> Result<X509Extension, ErrorStack>
Return the KeyUsage extension as an X509Extension.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for KeyUsage
impl Send for KeyUsage
impl Sync for KeyUsage
impl Unpin for KeyUsage
impl UnwindSafe for KeyUsage
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