Crate zmodem2

Crate zmodem2 

Source
Expand description

ZMODEM file transfer protocol crate. zmodem2::State::receive and zmodem2::State::send provide a synchronous and sequential API for sending and receiving files with the ZMODEM protocol. Each step corresponds to a single ZMODEM frame transaction, and the state between the calls is kept in a zmodem2::State instance. The usage can be described in the high-level with the following flow:

  1. Create zmodem2::State.
  2. Call either state.send(...) or state.receive(...).
  3. If the returned zmodem2::Stage is not yet zmodem2::Stage::FileEnd, go back to step 2.

Structs§

Buffer
A buffer type for incoming and outgoing and other flyaway data.
CapacityError
An error indicating a buffer’s capacity was exceeded.
Header
Data structure for holding a ZMODEM protocol header, which begins a frame, and is followed optionally by a variable number of subpackets.
String
A stack-allocated, fixed-capacity string.
Transmission
Send or receive transmission state
Zrinit
ZRINIT flags

Enums§

Encoding
The ZMODEM protocol frame encoding
Error
Top-level error type.
Frame
Frame types
State
SubpacketType
The ZMODEM protocol subpacket type

Constants§

XON
ZDLE
ZPAD

Traits§

Read
Read operations.
Seek
Seek operations
Write
Write operations.