pub trait WritePacket: Write {
// Provided method
fn put_packet(&mut self, pkt: Packet) -> Result<()> { ... }
}Expand description
Used to write a packet into a source.
Provided Methods§
Sourcefn put_packet(&mut self, pkt: Packet) -> Result<()>
fn put_packet(&mut self, pkt: Packet) -> Result<()>
Writes a packet into a source.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".