pub struct PartFlags(/* private fields */);Expand description
What happened while a part was parsed.
Implementations§
Source§impl PartFlags
impl PartFlags
Sourcepub fn intersects(&self, other: PartFlags) -> bool
pub fn intersects(&self, other: PartFlags) -> bool
Whether at least one flag of other is set.
Source§impl PartFlags
impl PartFlags
Sourcepub const MISSING_DELIMITER: PartFlags
pub const MISSING_DELIMITER: PartFlags
No delimiter of the enclosing multipart ended this part; it runs to
the parent’s next delimiter or to the end of the input. On a
multipart: its first delimiter was its close delimiter, so it has no
children and its content is the preamble in
MessagePart::raw_body.
Sourcepub const FALLBACK_DELIMITER: PartFlags
pub const FALLBACK_DELIMITER: PartFlags
The part ended at a delimiter found in the middle of a line. On a multipart: its first delimiter was found in the middle of a line, because no delimiter at the start of a line opened it (only its close delimiter, or a delimiter of an enclosing multipart, was found).
Sourcepub const NO_BLANK_LINE: PartFlags
pub const NO_BLANK_LINE: PartFlags
The header block did not end with a blank line: it runs to the end of
the input, or a delimiter cut it, and the body is empty. On a
message/rfc822 part that is not PartKind::Message: the nested
message was empty or had no header block, so the part keeps its body
as text (PartKind::Text, or PartKind::Binary when it was
transfer-encoded).
Sourcepub const UNTERMINATED: PartFlags
pub const UNTERMINATED: PartFlags
A multipart without its close delimiter. Not set on the multiparts left open when the part limit stopped the parse.
Sourcepub const NESTING_LIMIT: PartFlags
pub const NESTING_LIMIT: PartFlags
A transfer-encoded nested message beyond the encoded nesting limit.
Sourcepub const LIMIT_REACHED: PartFlags
pub const LIMIT_REACHED: PartFlags
A limit was reached here. Depth limit: this multipart or
message/rfc822 part was not opened and is kept as a leaf. Part
limit: the parse stopped inside this part, which holds the content
that was not parsed. That is the last part when it is a leaf child of
the innermost open multipart (it then runs to the end of its source),
else that multipart, or the message/rfc822 part whose nested
message had no part yet; the containers still open all run to the
end of their source.
Trait Implementations§
Source§impl BitOrAssign for PartFlags
impl BitOrAssign for PartFlags
Source§fn bitor_assign(&mut self, other: PartFlags)
fn bitor_assign(&mut self, other: PartFlags)
|= operation. Read more