CraftSyncReader

Trait CraftSyncReader 

Source
pub trait CraftSyncReader {
    // Required methods
    fn read_raw_packet<'a, P>(&'a mut self) -> ReadResult<P>
       where P: RawPacket<'a>;
    fn read_raw_untyped_packet(&mut self) -> ReadResult<(Id, &[u8])>;

    // Provided method
    fn read_packet<'a, P>(
        &'a mut self,
    ) -> ReadResult<<P as RawPacket<'a>>::Packet>
       where P: RawPacket<'a> { ... }
}

Required Methods§

Source

fn read_raw_packet<'a, P>(&'a mut self) -> ReadResult<P>
where P: RawPacket<'a>,

Source

fn read_raw_untyped_packet(&mut self) -> ReadResult<(Id, &[u8])>

Provided Methods§

Source

fn read_packet<'a, P>(&'a mut self) -> ReadResult<<P as RawPacket<'a>>::Packet>
where P: RawPacket<'a>,

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.

Implementors§