Skip to main content

Crate zmodem2

Crate zmodem2 

Source
Expand description

ZMODEM file transfer protocol library. Sender and Receiver are caller-driven state machines for sending and receiving files with the ZMODEM protocol. The crate is no_std compatible and heapless.

The caller owns all I/O. The loop is the same for both roles:

  1. Create a Sender or Receiver.
  2. Call poll() to get the next Action:
  3. The sender offers files with Sender::start_file and ends the session with Sender::finish.

Structs§

FileInfo
File metadata advertised by the sender.
Position
Byte offset in a ZMODEM file transfer.
Receiver
ZMODEM receiver state machine.
Sender
ZMODEM sender state machine.

Enums§

Action
The next action the caller must perform, returned by Sender::poll and Receiver::poll.
Error
Top-level error type.
Event
Protocol-level event surfaced through Action::Event.