middleman 0.3.1

A wrapper for a mio::TcpStream to send and receive serializable Structs (blocking or non blocking) of arbitrary size
Documentation
1
2
3
4
5
6
7
8
use serde::{
    Serialize, 
    de::DeserializeOwned,
};

/// This marker trait must be implemented for any structure intended for
/// sending using a Middleman send or recv. 
pub trait Message: Serialize + DeserializeOwned {}