pub trait IClientMsg: Send + Sync {
// Required methods
fn is_proto(&self) -> bool;
fn msg_type(&self) -> EMsg;
fn session_id(&self) -> i32;
fn set_session_id(&mut self, id: i32);
fn steam_id(&self) -> Option<SteamID>;
fn set_steam_id(&mut self, id: SteamID);
fn target_job_id(&self) -> JobID;
fn set_target_job_id(&mut self, id: JobID);
fn source_job_id(&self) -> JobID;
fn set_source_job_id(&mut self, id: JobID);
fn serialize(&self) -> Vec<u8> ⓘ;
}Expand description
A unified interface into client messages.
Required Methods§
Sourcefn session_id(&self) -> i32
fn session_id(&self) -> i32
The session id of this client message.
Sourcefn set_session_id(&mut self, id: i32)
fn set_session_id(&mut self, id: i32)
Sets the session id of this client message.
Sourcefn set_steam_id(&mut self, id: SteamID)
fn set_steam_id(&mut self, id: SteamID)
Sets the SteamID of this client message.
Sourcefn target_job_id(&self) -> JobID
fn target_job_id(&self) -> JobID
The target job id of this client message.
Sourcefn set_target_job_id(&mut self, id: JobID)
fn set_target_job_id(&mut self, id: JobID)
Sets the target job id of this client message.
Sourcefn source_job_id(&self) -> JobID
fn source_job_id(&self) -> JobID
The source job id of this client message.
Sourcefn set_source_job_id(&mut self, id: JobID)
fn set_source_job_id(&mut self, id: JobID)
Sets the source job id of this client message.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".