[][src]Trait rust_openttd_admin::packet::admin::PacketRead

pub trait PacketRead {
    fn read_packet(&mut self) -> Result<(u8, Vec<u8>)>;
}

A trait that provides the read_packet function to a type implementing std::io::Read.

Required methods

fn read_packet(&mut self) -> Result<(u8, Vec<u8>)>

Read a packet and return the packet type and data.

Loading content...

Implementors

impl<T: Read> PacketRead for T[src]

Loading content...