Struct x509_parser::extensions::KeyUsage
source · [−]pub struct KeyUsage {
pub flags: u16,
}
Fields
flags: u16
Implementations
sourceimpl KeyUsage
impl KeyUsage
pub fn digital_signature(&self) -> bool
pub fn non_repudiation(&self) -> bool
pub fn key_encipherment(&self) -> bool
pub fn data_encipherment(&self) -> bool
pub fn key_agreement(&self) -> bool
pub fn key_cert_sign(&self) -> bool
pub fn crl_sign(&self) -> bool
pub fn encipher_only(&self) -> bool
pub fn decipher_only(&self) -> bool
Trait Implementations
sourceimpl<'a> FromDer<'a, X509Error> for KeyUsage
impl<'a> FromDer<'a, X509Error> for KeyUsage
sourcefn from_der(i: &'a [u8]) -> X509Result<'a, Self>
fn from_der(i: &'a [u8]) -> X509Result<'a, Self>
Attempt to parse input bytes into a DER object (enforcing constraints)
impl Copy for KeyUsage
impl StructuralPartialEq for KeyUsage
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<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for T where
T: 'a,
sourceimpl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for T where
T: 'a,
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