pub struct SessionResponse {
pub session_id: u32,
pub crc_seed: u32,
pub crc_length: u8,
pub is_compression_enabled: bool,
pub unknown_value_1: u8,
pub udp_length: u32,
pub soe_protocol_version: u32,
}Expand description
A packet used to confirm a session request.
Fields§
§session_id: u32The ID of the session being confirmed.
crc_seed: u32A randomly generated seed used to calculate CRC-32 check values.
crc_length: u8The number of bytes used to store CRC-32 check values.
is_compression_enabled: boolWhether relevant packets may be compressed.
unknown_value_1: u8Unknown. Always observed to be 0.
udp_length: u32The maximum length of a UDP packet that the sender can receive.
soe_protocol_version: u32The version of the SOE protocol in use.
Implementations§
Source§impl SessionResponse
impl SessionResponse
Sourcepub fn deserialize(buffer: &[u8], has_op_code: bool) -> Result<Self>
pub fn deserialize(buffer: &[u8], has_op_code: bool) -> Result<Self>
Deserializes a packet from buffer.
Trait Implementations§
Source§impl Clone for SessionResponse
impl Clone for SessionResponse
Source§fn clone(&self) -> SessionResponse
fn clone(&self) -> SessionResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionResponse
impl Debug for SessionResponse
impl Eq for SessionResponse
Source§impl PartialEq for SessionResponse
impl PartialEq for SessionResponse
Source§fn eq(&self, other: &SessionResponse) -> bool
fn eq(&self, other: &SessionResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionResponse
Auto Trait Implementations§
impl Freeze for SessionResponse
impl RefUnwindSafe for SessionResponse
impl Send for SessionResponse
impl Sync for SessionResponse
impl Unpin for SessionResponse
impl UnsafeUnpin for SessionResponse
impl UnwindSafe for SessionResponse
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