Skip to main content

Crate base64_ng_mime

Crate base64_ng_mime 

Source
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§

MimeBodyDecodeReport
Cumulative result metadata for RFC 2045 body decoding.
MimeBodyDecoder
Incremental bounded RFC 2045 Base64 content-transfer body decoder.
MimeBodyEncoder
Heapless incremental RFC 2045 Base64 content-transfer body encoder.
MimeBodyError
Detailed ordinary error for RFC 2045 Base64 content-transfer bodies.
MimeBodyLimits
Finite resource limits for one RFC 2045 Base64 content-transfer body.
MimeBodyProgress
Progress committed by one incremental RFC 2045 body call.
MimeBodyStep
One incremental RFC 2045 body result.

Enums§

MimeBodyDecodePolicy
Which RFC 2045 Base64 content-transfer body input contract to enforce.
MimeBodyErrorKind
Stable classification for an RFC 2045 body failure.
MimeBodyStatus
Non-failing incremental RFC 2045 body state.
MimeBodyTerminalLineEnding
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.