pub enum PadOutcome {
Padded {
bytes: Vec<u8>,
added: usize,
},
SkippedOpaque,
SkippedTooSmall,
}Expand description
Result of a padding attempt.
Variants§
Padded
Body was padded successfully. bytes holds the new body and is
at least requested_bytes larger than the original.
SkippedOpaque
Content-type was opaque (binary, unknown) and the original was non-empty — padding would corrupt it. Original returned unchanged.
SkippedTooSmall
The requested padding is below MIN_USEFUL_PAD; not worth doing.
Trait Implementations§
Source§impl Clone for PadOutcome
impl Clone for PadOutcome
Source§fn clone(&self) -> PadOutcome
fn clone(&self) -> PadOutcome
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 moreSource§impl Debug for PadOutcome
impl Debug for PadOutcome
Source§impl PartialEq for PadOutcome
impl PartialEq for PadOutcome
Source§fn eq(&self, other: &PadOutcome) -> bool
fn eq(&self, other: &PadOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PadOutcome
impl StructuralPartialEq for PadOutcome
Auto Trait Implementations§
impl Freeze for PadOutcome
impl RefUnwindSafe for PadOutcome
impl Send for PadOutcome
impl Sync for PadOutcome
impl Unpin for PadOutcome
impl UnsafeUnpin for PadOutcome
impl UnwindSafe for PadOutcome
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.