pub trait Outbound {
    fn serialize_with_header(&self) -> Result<Bytes>;
}

Required Methods

Serializes the message with its size header. The first 32-bit (4-byte) represents the length of the message. ref. “avalanchego/network/peer.writeMessages”

Implementors