Struct x509_parser::extensions::KeyUsage
source · pub struct KeyUsage {
pub flags: u16,
}
Fields§
§flags: u16
Implementations§
source§impl 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§
source§impl<'a> FromDer<'a, X509Error> for KeyUsage
impl<'a> FromDer<'a, X509Error> for KeyUsage
source§fn 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)
source§impl PartialEq for KeyUsage
impl PartialEq for KeyUsage
impl Copy for KeyUsage
impl Eq 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§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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