pub trait PacketSink {
type Error;
// Required method
fn send_packet(&mut self, packet: &[u8]) -> Result<(), Self::Error>;
}Expand description
Common packet-sink contract for transport adapters.
pub trait PacketSink {
type Error;
// Required method
fn send_packet(&mut self, packet: &[u8]) -> Result<(), Self::Error>;
}Common packet-sink contract for transport adapters.