Struct uosql::types::Greeting [] [src]

pub struct Greeting {
    pub protocol_version: u8,
    pub message: String,
}

This is the first packet being sent by the server after the TCP connection is established.

Fields

protocol_version
message

Methods

impl Greeting

fn make_greeting(version: u8, msg: String) -> Greeting

Trait Implementations

Derived Implementations

impl Decodable for Greeting

fn decode<__D>(__arg_0: &mut __D) -> Result<Greeting, __D::Error> where __D: Decoder

impl Encodable for Greeting

fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), __S::Error> where __S: Encoder