Crate pipenet

Crate pipenet 

Source
Expand description

A non blocking tcp stream wrapper.

This module is useful when wanting to use the non blocking feature of a socket, but without having to depend on async.

The NonBlockStream can be obtained from a TcpStream just with an into() call.

Reads NonBlockStream::read and writes NonBlockStream::write are called whenever the user has time to check for messages or needs to write, and regardless of the nature of the caller, the IO operations will happen in the background in a separate thread maintained by the NonBlockStream struct.

Structs§

NonBlockStream
A non blocking wrapper for a TcpStream.
Packs
A list of encapsulatins for the protocol. Their order is executed while writing, while the reverse while reading.
Versions
This is the configuration that is used to determine the versioning of the messages.

Traits§

Message
The type of the message being send/received by the stream.