Expand description
Bounded RFC 2045 Base64 content-transfer body support.
This crate encodes and decodes the Base64 body bytes described by RFC 2045 Section 6.8. It does not parse MIME headers, multipart boundaries, media types, messages, or body-part containers. Ordinary compatible decoding ignores bytes outside RFC 2045 Table 1 only under explicit finite limits and reports suspicious transport content to the caller.
Structs§
- Mime
Body Decode Report - Cumulative result metadata for RFC 2045 body decoding.
- Mime
Body Decoder - Incremental bounded RFC 2045 Base64 content-transfer body decoder.
- Mime
Body Encoder - Heapless incremental RFC 2045 Base64 content-transfer body encoder.
- Mime
Body Error - Detailed ordinary error for RFC 2045 Base64 content-transfer bodies.
- Mime
Body Limits - Finite resource limits for one RFC 2045 Base64 content-transfer body.
- Mime
Body Progress - Progress committed by one incremental RFC 2045 body call.
- Mime
Body Step - One incremental RFC 2045 body result.
Enums§
- Mime
Body Decode Policy - Which RFC 2045 Base64 content-transfer body input contract to enforce.
- Mime
Body Error Kind - Stable classification for an RFC 2045 body failure.
- Mime
Body Status - Non-failing incremental RFC 2045 body state.
- Mime
Body Terminal Line Ending - Whether a generated RFC 2045 body ends in
CRLF.
Functions§
- decode_
mime_ content_ transfer_ body_ into - Decodes one body transactionally into caller-owned storage.
- decode_
mime_ content_ transfer_ body_ to_ vec - Decodes into a fallibly allocated ordinary byte vector.
- encode_
mime_ content_ transfer_ body_ into - Encodes one body transactionally into caller-owned storage.
- encode_
mime_ content_ transfer_ body_ to_ string - Encodes into a fallibly allocated canonical body string.
- mime_
content_ transfer_ body_ encoded_ len - Returns the exact canonical RFC 2045 content-transfer body length.
- validate_
mime_ content_ transfer_ body - Validates and measures one RFC 2045 content-transfer body.