pub struct Cert { /* private fields */ }Expand description
A single embedded CA root certificate.
All accessors are zero-cost: the fields point into data baked into the binary at build time.
Implementations§
Source§impl Cert
impl Cert
Sourcepub const fn subject_der(&self) -> &'static [u8]
pub const fn subject_der(&self) -> &'static [u8]
The raw DER of the certificate’s subject Name (the SEQUENCE TLV).
Sourcepub const fn subject_hash(&self) -> u32
pub const fn subject_hash(&self) -> u32
The OpenSSL subject hash (the 062cdee6 part of a hash name).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cert
impl RefUnwindSafe for Cert
impl Send for Cert
impl Sync for Cert
impl Unpin for Cert
impl UnsafeUnpin for Cert
impl UnwindSafe for Cert
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