pub enum EncodingErrorKind {
InvalidTextEncoding {
expected_encoding: &'static str,
got_encoding: &'static str,
},
HardLineLengthLimitBreached,
NotEncodable {
encoding: &'static str,
},
Malformed,
AccessingMailBodyFailed,
Other {
kind: &'static str,
},
}
Expand description
A general error appearing when encoding failed in some way.
Variants§
InvalidTextEncoding
HardLineLengthLimitBreached
NotEncodable
Malformed
AccessingMailBodyFailed
Other
Trait Implementations§
Source§impl Clone for EncodingErrorKind
impl Clone for EncodingErrorKind
Source§fn clone(&self) -> EncodingErrorKind
fn clone(&self) -> EncodingErrorKind
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 EncodingErrorKind
impl Debug for EncodingErrorKind
Source§impl Display for EncodingErrorKind
impl Display for EncodingErrorKind
Source§impl Fail for EncodingErrorKind
impl Fail for EncodingErrorKind
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<EncodingErrorKind> for EncodingError
impl From<EncodingErrorKind> for EncodingError
Source§fn from(ctx: EncodingErrorKind) -> Self
fn from(ctx: EncodingErrorKind) -> Self
Converts to this type from the input type.
Source§impl Hash for EncodingErrorKind
impl Hash for EncodingErrorKind
Source§impl PartialEq for EncodingErrorKind
impl PartialEq for EncodingErrorKind
impl Copy for EncodingErrorKind
impl Eq for EncodingErrorKind
impl StructuralPartialEq for EncodingErrorKind
Auto Trait Implementations§
impl Freeze for EncodingErrorKind
impl RefUnwindSafe for EncodingErrorKind
impl Send for EncodingErrorKind
impl Sync for EncodingErrorKind
impl Unpin for EncodingErrorKind
impl UnwindSafe for EncodingErrorKind
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