pub struct PacketClientMsg { /* private fields */ }Expand description
A packet with an extended header.
Implementations§
Source§impl PacketClientMsg
impl PacketClientMsg
Sourcepub fn new(e_msg: EMsg, data: Vec<u8>) -> Result<Self, SteamError>
pub fn new(e_msg: EMsg, data: Vec<u8>) -> Result<Self, SteamError>
Parses the extended header of data so the job ids can be read. The
body starts right after the header.
Sourcepub fn header(&self) -> &ExtendedClientMsgHdr
pub fn header(&self) -> &ExtendedClientMsgHdr
The header of this packet message.
Sourcepub fn body_offset(&self) -> u64
pub fn body_offset(&self) -> u64
The offset of the body inside the raw data.
Trait Implementations§
Source§impl IPacketMsg for PacketClientMsg
impl IPacketMsg for PacketClientMsg
Source§fn target_job_id(&self) -> JobID
fn target_job_id(&self) -> JobID
The target job id of this packet message.
Source§fn source_job_id(&self) -> JobID
fn source_job_id(&self) -> JobID
The source job id of this packet message.
Auto Trait Implementations§
impl Freeze for PacketClientMsg
impl RefUnwindSafe for PacketClientMsg
impl Send for PacketClientMsg
impl Sync for PacketClientMsg
impl Unpin for PacketClientMsg
impl UnsafeUnpin for PacketClientMsg
impl UnwindSafe for PacketClientMsg
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