pub trait PacketRead {
// Required method
fn read_packet(&mut self) -> Result<(u8, Vec<u8>)>;
}
Expand description
A trait that provides the read_packet
function
to a type implementing std::io::Read
.
pub trait PacketRead {
// Required method
fn read_packet(&mut self) -> Result<(u8, Vec<u8>)>;
}
A trait that provides the read_packet
function
to a type implementing std::io::Read
.