pub struct ClientGCMsgProtobuf<TBody>{
pub header: MsgGCHdrProtoBuf,
pub body: TBody,
pub payload: MsgBase,
}Expand description
A protobuf-backed game coordinator message.
Fields§
§header: MsgGCHdrProtoBufThe header of this message.
body: TBodyThe body of this message.
payload: MsgBaseThe raw payload that follows the body.
Implementations§
Source§impl<TBody> ClientGCMsgProtobuf<TBody>
impl<TBody> ClientGCMsgProtobuf<TBody>
Sourcepub fn with_payload_reserve(e_msg: u32, payload_reserve: usize) -> Self
pub fn with_payload_reserve(e_msg: u32, payload_reserve: usize) -> Self
Like new, but reserves payload_reserve bytes for the payload.
Sourcepub fn reply(e_msg: u32, reply_to: &dyn IClientGCMsg) -> Self
pub fn reply(e_msg: u32, reply_to: &dyn IClientGCMsg) -> Self
Creates a reply to reply_to, targeting its source job.
Sourcepub fn from_packet(msg: &dyn IPacketGCMsg) -> Result<Self, SteamError>
pub fn from_packet(msg: &dyn IPacketGCMsg) -> Result<Self, SteamError>
Parses a received GC packet.
Sourcepub fn body_mut(&mut self) -> &mut TBody
pub fn body_mut(&mut self) -> &mut TBody
The mutable body structure of this message.
Sourcepub fn header(&self) -> &MsgGCHdrProtoBuf
pub fn header(&self) -> &MsgGCHdrProtoBuf
The header of this message.
Sourcepub fn header_mut(&mut self) -> &mut MsgGCHdrProtoBuf
pub fn header_mut(&mut self) -> &mut MsgGCHdrProtoBuf
The mutable header of this message.
Sourcepub fn proto_header(&self) -> &CMsgProtoBufHeader
pub fn proto_header(&self) -> &CMsgProtoBufHeader
Shorthand for the protobuf header.
Sourcepub fn proto_header_mut(&mut self) -> &mut CMsgProtoBufHeader
pub fn proto_header_mut(&mut self) -> &mut CMsgProtoBufHeader
Mutable shorthand for the protobuf header.
Sourcepub fn payload_mut(&mut self) -> &mut MsgBase
pub fn payload_mut(&mut self) -> &mut MsgBase
The mutable payload buffer of this message.
Trait Implementations§
Source§impl<TBody> IClientGCMsg for ClientGCMsgProtobuf<TBody>
impl<TBody> IClientGCMsg for ClientGCMsgProtobuf<TBody>
Source§fn target_job_id(&self) -> JobID
fn target_job_id(&self) -> JobID
The target job id of this game coordinator message.
Source§fn set_target_job_id(&mut self, id: JobID)
fn set_target_job_id(&mut self, id: JobID)
Sets the target job id of this game coordinator message.
Source§fn source_job_id(&self) -> JobID
fn source_job_id(&self) -> JobID
The source job id of this game coordinator message.
Source§fn set_source_job_id(&mut self, id: JobID)
fn set_source_job_id(&mut self, id: JobID)
Sets the source job id of this game coordinator message.
Source§fn deserialize(&mut self, data: &[u8]) -> Result<(), SteamError>
fn deserialize(&mut self, data: &[u8]) -> Result<(), SteamError>
Fills this message in from serialized
data.Auto Trait Implementations§
impl<TBody> Freeze for ClientGCMsgProtobuf<TBody>where
TBody: Freeze,
impl<TBody> RefUnwindSafe for ClientGCMsgProtobuf<TBody>where
TBody: RefUnwindSafe,
impl<TBody> Send for ClientGCMsgProtobuf<TBody>
impl<TBody> Sync for ClientGCMsgProtobuf<TBody>
impl<TBody> Unpin for ClientGCMsgProtobuf<TBody>where
TBody: Unpin,
impl<TBody> UnsafeUnpin for ClientGCMsgProtobuf<TBody>where
TBody: UnsafeUnpin,
impl<TBody> UnwindSafe for ClientGCMsgProtobuf<TBody>where
TBody: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more