pub struct PemDecodePolicy<'a> {
pub allowed_labels: &'a [PemLabel],
pub max_input_len: usize,
pub max_der_len: usize,
}Expand description
Policy controlling PEM decoding.
Fields§
§allowed_labels: &'a [PemLabel]Exact labels accepted by the caller.
max_input_len: usizeMaximum input text length in bytes.
max_der_len: usizeMaximum decoded DER body length in bytes.
Trait Implementations§
Source§impl<'a> Clone for PemDecodePolicy<'a>
impl<'a> Clone for PemDecodePolicy<'a>
Source§fn clone(&self) -> PemDecodePolicy<'a>
fn clone(&self) -> PemDecodePolicy<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for PemDecodePolicy<'a>
Source§impl<'a> Debug for PemDecodePolicy<'a>
impl<'a> Debug for PemDecodePolicy<'a>
Auto Trait Implementations§
impl<'a> Freeze for PemDecodePolicy<'a>
impl<'a> RefUnwindSafe for PemDecodePolicy<'a>
impl<'a> Send for PemDecodePolicy<'a>
impl<'a> Sync for PemDecodePolicy<'a>
impl<'a> Unpin for PemDecodePolicy<'a>
impl<'a> UnsafeUnpin for PemDecodePolicy<'a>
impl<'a> UnwindSafe for PemDecodePolicy<'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