Skip to main content

Crate turnloop_smtp

Crate turnloop_smtp 

Source
Expand description

§Getting started on turnloop

Enable the turnloop feature for the asynchronous module. The embedding host owns LocalExecutor and calls turn; adapters await its streams and deadline futures. See the crate README and turnloop-io for ownership, streaming and cancellation examples. Default features retain the sans-I/O API. Pull-driven SMTP with explicit TLS transitions. Socket, DNS, certificate policy and clock ownership remain in the host. Ready also completes verify.

Modules§

message
Deterministic lettre message building. Caller supplies Date, Message-ID and MIME boundary seed; this wrapper never calls lettre’s clock/random defaults.

Structs§

Capabilities
Config
Connection
DataEncoder
Incremental SMTP DATA encoding: normalizes LF, CRLF and bare CR to CRLF and dot-stuffs each line. State carries across DataEncoder::encode calls, so a CR/LF pair or a line-leading . split between chunks encodes exactly as it would in one piece.
Envelope
Error
Rejection
SendInfo
StreamBody
How a streamed message body will be sent; see Connection::start_send.

Enums§

Auth
Event
State
Tls

Functions§

encode_data
Normalize LF, CRLF and bare CR, dot-stuff each line, append the SMTP DATA terminator. Returns SIZE octets (normalized content, excluding transparency).