pub struct DecodeProblems(/* private fields */);Expand description
Problems found while decoding a body, returned by
MessagePart::decoded_checked and MessagePart::text_checked. A
non-empty set is what RFC 8621 calls isEncodingProblem.
Implementations§
Source§impl DecodeProblems
impl DecodeProblems
Sourcepub fn contains(&self, other: DecodeProblems) -> bool
pub fn contains(&self, other: DecodeProblems) -> bool
Whether every flag of other is set.
Sourcepub fn intersects(&self, other: DecodeProblems) -> bool
pub fn intersects(&self, other: DecodeProblems) -> bool
Whether at least one flag of other is set.
Source§impl DecodeProblems
impl DecodeProblems
Sourcepub const MALFORMED_TRANSFER_ENCODING: DecodeProblems
pub const MALFORMED_TRANSFER_ENCODING: DecodeProblems
The transfer encoding had malformed sections: bytes outside the base64 alphabet were skipped, or malformed quoted-printable escapes were kept as written.
Sourcepub const UNKNOWN_TRANSFER_ENCODING: DecodeProblems
pub const UNKNOWN_TRANSFER_ENCODING: DecodeProblems
The Content-Transfer-Encoding is none of 7bit, 8bit, binary,
base64 and quoted-printable; the body was left as written.
Sourcepub const UNKNOWN_CHARSET: DecodeProblems
pub const UNKNOWN_CHARSET: DecodeProblems
The charset is unknown, or not supported by this build (the
multi-byte charsets need the full_encoding feature); the text was
decoded as UTF-8.
Sourcepub const MALFORMED_CHARSET: DecodeProblems
pub const MALFORMED_CHARSET: DecodeProblems
Byte sequences that are not valid in the charset were replaced by U+FFFD. For UTF-7 also: 8-bit bytes were read as Latin-1, or an unterminated shift sequence at the end was dropped.
Trait Implementations§
Source§impl BitOr for DecodeProblems
impl BitOr for DecodeProblems
Source§type Output = DecodeProblems
type Output = DecodeProblems
| operator.Source§fn bitor(self, other: DecodeProblems) -> DecodeProblems
fn bitor(self, other: DecodeProblems) -> DecodeProblems
| operation. Read moreSource§impl BitOrAssign for DecodeProblems
impl BitOrAssign for DecodeProblems
Source§fn bitor_assign(&mut self, other: DecodeProblems)
fn bitor_assign(&mut self, other: DecodeProblems)
|= operation. Read more