#[non_exhaustive]pub enum PemItem<'a> {
Certificate(Certificate<'a>),
PrivateKey(PrivateKey<'a>),
}Expand description
Kinds of PEM data found by parse_pem
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl<'a> From<Certificate<'a>> for PemItem<'a>
impl<'a> From<Certificate<'a>> for PemItem<'a>
Source§fn from(value: Certificate<'a>) -> Self
fn from(value: Certificate<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<PrivateKey<'a>> for PemItem<'a>
impl<'a> From<PrivateKey<'a>> for PemItem<'a>
Source§fn from(value: PrivateKey<'a>) -> Self
fn from(value: PrivateKey<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for PemItem<'a>
impl<'a> RefUnwindSafe for PemItem<'a>
impl<'a> Send for PemItem<'a>
impl<'a> Sync for PemItem<'a>
impl<'a> Unpin for PemItem<'a>
impl<'a> UnwindSafe for PemItem<'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