Re-exports§
pub use nom;
Structs§
- Data
Unescape Res - Data
Unescaper - Helper struct to unescape a data stream.
- Enhanced
Reply Code - Escaped
Data Reader AsyncReadinstance that returns an unescapedDATAstream.- Escaping
Data Writer AsyncWriteinstance that takes an unescapedDATAstream and escapes it.- Parameters
- Note: This struct includes the leading ’ ’
- Path
- Note: for convenience this is not exactly like what is described by RFC5321, and it does not contain the Email. Indeed, paths are very rare nowadays.
- Reply
- Reply
Code - Reply
Line
Enums§
- Command
- Enhanced
Reply Code Class - Enhanced
Reply Code Subject - Hostname
- Note: comparison happens only on the
rawfield, meaning that if you modify or create aHostnameyourself it could have surprising results. But such aHostnamewould then not actually represent a real hostname, so you probably would have had surprising results anyway. - Localpart
- Maybe
Utf8 - Next
CrLf State - Parameter
Name - Reply
Code Category - Reply
Code Kind
Functions§
- next_
crlf - Returns the index of the \n in the first \r\n of buf, or
Noneif there was none yet. This will updatestate, the first call should pass inNextCrLfState::Start, and subsequent calls (until a non-Nonevalue is found) should just keep using the same reference.