#[non_exhaustive]pub enum MultipartErrorKind {
PreambleSizeLimit,
HeaderSizeLimit,
HeaderCountLimit,
PartCountLimit,
InvalidField,
FoldedField,
InvalidDelimiter,
UnexpectedEnd,
}Expand description
The kind of MultipartError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PreambleSizeLimit
The preamble is longer than its limit, at the start of the preamble, which is the start of the body.
HeaderSizeLimit
A part’s header section, with any padding after the boundary before it, is longer than its limit, at the start of the section; or the padding after a boundary, including the closing one, is longer than the limit by itself, at the start of the padding.
HeaderCountLimit
A part’s header section has more fields than its limit, at the start of the section.
PartCountLimit
The body has more parts than its limit, at the line break that ends the boundary line of the part beyond it.
InvalidField
A header line is not name: value with a valid name and value, or does not end with CRLF, at the start of its header section.
FoldedField
A header line is folded, continuing the previous line, which this parser does not accept, at the start of its header section.
InvalidDelimiter
A boundary is followed by something other than optional spaces and tabs and a line break, or --, so it appears in content where RFC 2046 does not allow it, at the first byte after the boundary and its padding that does not begin CRLF, or -- directly after the boundary; or a boundary follows a bare CR or LF, at that line break, after the content or preamble before it.
UnexpectedEnd
The body ended before its closing boundary, at the first byte the parser had not consumed.