Trait avalanche_types::message::Outbound
source · [−]pub trait Outbound {
fn serialize_with_header(&self) -> Result<Bytes>;
}
Required Methods
sourcefn serialize_with_header(&self) -> Result<Bytes>
fn serialize_with_header(&self) -> Result<Bytes>
Serializes the message with its size header. The first 32-bit (4-byte) represents the length of the message. ref. “avalanchego/network/peer.writeMessages”