Struct hematite_server::packet::handshake::Handshake [] [src]

pub struct Handshake {
    pub proto_version: Var<i32>::Clean,
    pub server_address: String::Clean,
    pub server_port: u16::Clean,
    pub next_state: NextState::Clean,
}

Fields

proto_version
server_address
server_port
next_state

Trait Implementations

impl Protocol for Handshake

type Clean = Self

fn proto_len(value: &Handshake) -> usize

fn proto_encode(value: &Handshake, dst: &mut Write) -> Result<()>

fn proto_decode(src: &mut Read) -> Result<Handshake>

impl PacketWrite for Handshake

fn inner_len(&self) -> usize

fn inner_encode(&self, dst: &mut Write) -> Result<()>

fn write(&self, dst: &mut Write) -> Result<()>

Derived Implementations

impl Debug for Handshake

fn fmt(&self, __arg_0: &mut Formatter) -> Result