Crate zmtp [] [src]

See spec v3.0 and spec 3.1 for details on the ZeroMQ Message Transport Protocol.

Structs

Command
CommandReader
CommandValidator
CommandWriter
Frame

A frame, commonly used to create Messages and Commands.

FrameReader
FrameWriter
Greeting
GreetingReader
GreetingWriter
Handshake
Message
MessageReader
MessageWriter
Peer

A Peer represents a ZMTP communication endpoint that can communicate bi-directionally. For example it can wrap a TcpStream, but anything that can both Read and Write can be wrapped.

Traffic
TrafficReader
TrafficWriter

Enums

FrameKind
SecurityMechanism
Size
SocketType
TrafficItem
ValidateResult

A validation result.

VersionPolicy

The policy that should be used in version handshaking.

Constants

BYTES_PER_U64

The number of bytes in a u64

NULL_MECHANISM
U8_MAX

The largest number that fits inside a u8

Traits

Peek

This trait allows peeking (i.e. non-destructive reading) in Readers. Non-destructive here refers to the fact that when calling peek(slice) on the same slice multiple times in a row, every call should return the same data.

PeerSource

This trait is used by Peer to actually read and write data.