pub enum PemSource {
Path(PathBuf),
Bytes(Vec<u8>),
}Expand description
Where a PEM blob lives.
Variants§
Path(PathBuf)
PEM file on disk; read at into_rustls_config() time.
Bytes(Vec<u8>)
Already-loaded PEM bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PemSource
impl RefUnwindSafe for PemSource
impl Send for PemSource
impl Sync for PemSource
impl Unpin for PemSource
impl UnsafeUnpin for PemSource
impl UnwindSafe for PemSource
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