pub trait Packetize<'a>: ByteRep<'a> {
// Required method
fn packetize(&self) -> Vec<Packet>;
}
Expand description
A trait implemented on objects that need to be sent across the network, whether kademlia, gossip, or some other protocol
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.