pub struct PacketClientMsgProtobuf { /* private fields */ }Expand description
A protobuf-backed packet.
Implementations§
Source§impl PacketClientMsgProtobuf
impl PacketClientMsgProtobuf
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 protobuf header of data so the job ids can be read. The
body starts right after the header.
Sourcepub fn header(&self) -> &MsgHdrProtoBuf
pub fn header(&self) -> &MsgHdrProtoBuf
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 PacketClientMsgProtobuf
impl IPacketMsg for PacketClientMsgProtobuf
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 PacketClientMsgProtobuf
impl RefUnwindSafe for PacketClientMsgProtobuf
impl Send for PacketClientMsgProtobuf
impl Sync for PacketClientMsgProtobuf
impl Unpin for PacketClientMsgProtobuf
impl UnsafeUnpin for PacketClientMsgProtobuf
impl UnwindSafe for PacketClientMsgProtobuf
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