Expand description
A Tokio codec that transforms an AsyncRead into a Stream of Messages.
A Tokio codec mapping byte streams to Bitcoin message streams.
Structsยง
- Builder
- A builder for specifying
Codecoptions. - Codec
- A codec which produces Bitcoin messages from byte streams and vice versa.
Enumsยง
- Decode
State ๐ - Decoded ๐
- The result of decoding the next message in a buffer.
Constantsยง
- HEADER_
LEN ๐ - The length of a Bitcoin message header.
- INITIAL_
BODY_ ๐RESERVATION_ STEP - Initial cap on reserved body capacity, before any body bytes have arrived.
- MAX_
HANDSHAKE_ ๐BODY_ LEN - The maximum body length allowed before the handshake completes.
- MAX_
IGNORED_ ๐MESSAGES_ PER_ DECODE - The number of messages in a row that one [
Decoder::decode] call ignores.