pub struct PemReader<'i> { /* private fields */ }Available on crate feature
pem only.Expand description
Reader for the Base64 body of a PEM document.
Implementations§
Source§impl<'i> PemReader<'i>
impl<'i> PemReader<'i>
Sourcepub fn new(pem: &'i [u8]) -> Result<Self>
pub fn new(pem: &'i [u8]) -> Result<Self>
Create a new PEM reader which autodetects the line width of the input.
§Errors
Returns crate::Error::Pem on errors parsing the encapsulation or initializing
the Base64 decoder.
Sourcepub fn type_label(&self) -> &'i str
pub fn type_label(&self) -> &'i str
Get the PEM type label for the input document.
Trait Implementations§
Auto Trait Implementations§
impl<'i> Forget for PemReader<'i>
impl<'i> Freeze for PemReader<'i>
impl<'i> Move for PemReader<'i>
impl<'i> RefUnwindSafe for PemReader<'i>
impl<'i> Send for PemReader<'i>
impl<'i> Sync for PemReader<'i>
impl<'i> Unpin for PemReader<'i>
impl<'i> UnsafeUnpin for PemReader<'i>
impl<'i> UnwindSafe for PemReader<'i>
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