Skip to main content

Module mapper

Module mapper 

Source
Expand description

Byte-stream mappers (CR/LF normalisation, future telnet/escape decoders, …).

A Mapper transforms a chunk of bytes into another chunk. It is deliberately direction-agnostic — the caller decides whether the mapper applies to inbound (imap), outbound (omap), or echoed (emap) traffic. v0.1 ships a single concrete mapper, LineEndingMapper, that covers the picocom-equivalent crlf/lfcr/igncr/ignlf rules.

Structs§

LineEndingConfig
The full set of line-ending mappers for a session’s byte streams.
LineEndingMapper
Stateless byte mapper that applies a single LineEnding rule.

Enums§

LineEnding
Line-ending transformation rule.

Traits§

Mapper
Generic byte-stream transformation.