Crate middleman [] [src]

Structs

Middleman

Wraps a mio::TcpStream object. Implmenents mio::Evented so it can be registered for polling. Offers try_read and send functions primarily with variants for convenience. This structure doesn't involve any extra threading.

Enums

RecvError

This error is returned from recv-like calls for the Middleman struct. Most errors originate from other dependencies. This enum thus delegates these cases, each to its own variant.

SendError

The error returned from send-like calls for the Middleman struct. Most errors originate from other dependencies. This enum thus delegates these cases, each to its own variant. In addition TooBigToRepresent is returned when the user passes a structure whose representation requires a length-field larger than std::u32::MAX, which the Middleman is not prepared to represent.

Traits

Message

This marker trait must be implemented for any structure intended for sending using a Middleman send or recv.