Re-exports§
pub use nom;
Structs§
- Data
Unescape Res - Data
Unescaper - Helper struct to unescape a data stream.
- Enhanced
Reply Code - Escaped
Data Reader AsyncRead
instance that returns an unescapedDATA
stream.- Escaping
Data Writer AsyncWrite
instance that takes an unescapedDATA
stream 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
raw
field, meaning that if you modify or create aHostname
yourself it could have surprising results. But such aHostname
would 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
None
if there was none yet. This will updatestate
, the first call should pass inNextCrLfState::Start
, and subsequent calls (until a non-None
value is found) should just keep using the same reference.