CMsgClientHello

Struct CMsgClientHello 

Source
pub struct CMsgClientHello {
Show 23 fields pub version: Option<u32>, pub socache_have_versions: Vec<CMsgSoCacheHaveVersion>, pub client_session_need: Option<u32>, pub client_launcher: Option<i32>, pub secret_key: Option<String>, pub client_language: Option<u32>, pub engine: Option<i32>, pub steamdatagram_login: Option<Vec<u8>>, pub platform_id: Option<u32>, pub game_msg: Option<Vec<u8>>, pub os_type: Option<i32>, pub render_system: Option<u32>, pub render_system_req: Option<u32>, pub screen_width: Option<u32>, pub screen_height: Option<u32>, pub screen_refresh: Option<u32>, pub render_width: Option<u32>, pub render_height: Option<u32>, pub swap_width: Option<u32>, pub swap_height: Option<u32>, pub is_steam_china: Option<bool>, pub is_steam_china_client: Option<bool>, pub platform_name: Option<String>,
}

Fields§

§version: Option<u32>§socache_have_versions: Vec<CMsgSoCacheHaveVersion>§client_session_need: Option<u32>§client_launcher: Option<i32>§secret_key: Option<String>§client_language: Option<u32>§engine: Option<i32>§steamdatagram_login: Option<Vec<u8>>§platform_id: Option<u32>§game_msg: Option<Vec<u8>>§os_type: Option<i32>§render_system: Option<u32>§render_system_req: Option<u32>§screen_width: Option<u32>§screen_height: Option<u32>§screen_refresh: Option<u32>§render_width: Option<u32>§render_height: Option<u32>§swap_width: Option<u32>§swap_height: Option<u32>§is_steam_china: Option<bool>§is_steam_china_client: Option<bool>§platform_name: Option<String>

Implementations§

Source§

impl CMsgClientHello

Source

pub fn version(&self) -> u32

Returns the value of version, or the default value if version is unset.

Source

pub fn client_session_need(&self) -> u32

Returns the value of client_session_need, or the default value if client_session_need is unset.

Source

pub fn client_launcher(&self) -> PartnerAccountType

Returns the enum value of client_launcher, or the default if the field is unset or set to an invalid enum value.

Source

pub fn set_client_launcher(&mut self, value: PartnerAccountType)

Sets client_launcher to the provided enum value.

Source

pub fn secret_key(&self) -> &str

Returns the value of secret_key, or the default value if secret_key is unset.

Source

pub fn client_language(&self) -> u32

Returns the value of client_language, or the default value if client_language is unset.

Source

pub fn engine(&self) -> ESourceEngine

Returns the enum value of engine, or the default if the field is unset or set to an invalid enum value.

Source

pub fn set_engine(&mut self, value: ESourceEngine)

Sets engine to the provided enum value.

Source

pub fn steamdatagram_login(&self) -> &[u8]

Returns the value of steamdatagram_login, or the default value if steamdatagram_login is unset.

Source

pub fn platform_id(&self) -> u32

Returns the value of platform_id, or the default value if platform_id is unset.

Source

pub fn game_msg(&self) -> &[u8]

Returns the value of game_msg, or the default value if game_msg is unset.

Source

pub fn os_type(&self) -> i32

Returns the value of os_type, or the default value if os_type is unset.

Source

pub fn render_system(&self) -> u32

Returns the value of render_system, or the default value if render_system is unset.

Source

pub fn render_system_req(&self) -> u32

Returns the value of render_system_req, or the default value if render_system_req is unset.

Source

pub fn screen_width(&self) -> u32

Returns the value of screen_width, or the default value if screen_width is unset.

Source

pub fn screen_height(&self) -> u32

Returns the value of screen_height, or the default value if screen_height is unset.

Source

pub fn screen_refresh(&self) -> u32

Returns the value of screen_refresh, or the default value if screen_refresh is unset.

Source

pub fn render_width(&self) -> u32

Returns the value of render_width, or the default value if render_width is unset.

Source

pub fn render_height(&self) -> u32

Returns the value of render_height, or the default value if render_height is unset.

Source

pub fn swap_width(&self) -> u32

Returns the value of swap_width, or the default value if swap_width is unset.

Source

pub fn swap_height(&self) -> u32

Returns the value of swap_height, or the default value if swap_height is unset.

Source

pub fn is_steam_china(&self) -> bool

Returns the value of is_steam_china, or the default value if is_steam_china is unset.

Source

pub fn platform_name(&self) -> &str

Returns the value of platform_name, or the default value if platform_name is unset.

Source

pub fn is_steam_china_client(&self) -> bool

Returns the value of is_steam_china_client, or the default value if is_steam_china_client is unset.

Trait Implementations§

Source§

impl Clone for CMsgClientHello

Source§

fn clone(&self) -> CMsgClientHello

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CMsgClientHello

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for CMsgClientHello

Source§

fn default() -> CMsgClientHello

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CMsgClientHello

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<CMsgClientHello, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Message for CMsgClientHello

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
Source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
Source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
Source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
Source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
Source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
Source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
Source§

impl PartialEq for CMsgClientHello

Source§

fn eq(&self, other: &CMsgClientHello) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for CMsgClientHello

Source§

fn serialize<__S>( &self, __serializer: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CMsgClientHello

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,