Enum rfc2047_decoder::RecoverStrategy
source · pub enum RecoverStrategy {
Decode,
Skip,
Abort,
}
Expand description
Determines which strategy should be used if an encoded word isn’t encoded as described in the RFC.
Variants§
Decode
Decode the encoded word although it’s incorrectly encoded.
§Example
Take a look to Decoder#RecoveryStrategy::Decode.
Skip
Abort
Abort the string-parsing and return an error.
§Example
Take a look to Decoder#RecoveryStrategy::Abort.
Trait Implementations§
source§impl Clone for RecoverStrategy
impl Clone for RecoverStrategy
source§fn clone(&self) -> RecoverStrategy
fn clone(&self) -> RecoverStrategy
Returns a copy 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 RecoverStrategy
impl Debug for RecoverStrategy
source§impl Hash for RecoverStrategy
impl Hash for RecoverStrategy
source§impl PartialEq for RecoverStrategy
impl PartialEq for RecoverStrategy
source§fn eq(&self, other: &RecoverStrategy) -> bool
fn eq(&self, other: &RecoverStrategy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RecoverStrategy
impl Eq for RecoverStrategy
impl StructuralPartialEq for RecoverStrategy
Auto Trait Implementations§
impl RefUnwindSafe for RecoverStrategy
impl Send for RecoverStrategy
impl Sync for RecoverStrategy
impl Unpin for RecoverStrategy
impl UnwindSafe for RecoverStrategy
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more