pub enum CorruptPem {
BadHeader,
BadFooter,
BadBase64,
Truncate {
bytes: usize,
},
ExtraBlankLine,
}Expand description
Strategies for corrupting PEM-encoded data.
Variants§
BadHeader
Replace the -----BEGIN …----- line with an invalid header.
Replace the -----END …----- line with an invalid footer.
BadBase64
Inject a non-base64 line into the body so decoders reject the payload.
Truncate
Keep only the first bytes characters of the PEM string.
ExtraBlankLine
Insert a blank line after the header, breaking strict PEM parsers.
Trait Implementations§
Source§impl Clone for CorruptPem
impl Clone for CorruptPem
Source§fn clone(&self) -> CorruptPem
fn clone(&self) -> CorruptPem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CorruptPem
impl Debug for CorruptPem
impl Copy for CorruptPem
Auto Trait Implementations§
impl Freeze for CorruptPem
impl RefUnwindSafe for CorruptPem
impl Send for CorruptPem
impl Sync for CorruptPem
impl Unpin for CorruptPem
impl UnsafeUnpin for CorruptPem
impl UnwindSafe for CorruptPem
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