pub struct CERT<'a> {
pub type_code: u16,
pub key_tag: u16,
pub algorithm: u8,
pub certificate: Cow<'a, [u8]>,
}
Expand description
A Certificate record see rfc4398
Fields§
§type_code: u16
The type of certificate (see RFC 4398 section 2.1)
key_tag: u16
The key tag value of the certificate public key
algorithm: u8
The algorithm number describing the certificate’s public key
certificate: Cow<'a, [u8]>
The certificate data in the format defined by the type_code
Implementations§
Trait Implementations§
impl<'a> Eq for CERT<'a>
impl<'a> StructuralPartialEq for CERT<'a>
Auto Trait Implementations§
impl<'a> Freeze for CERT<'a>
impl<'a> RefUnwindSafe for CERT<'a>
impl<'a> Send for CERT<'a>
impl<'a> Sync for CERT<'a>
impl<'a> Unpin for CERT<'a>
impl<'a> UnwindSafe for CERT<'a>
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