pub struct RemapConnection {
pub session_id: u32,
pub crc_seed: u32,
}Expand description
A packet used to remap an existing session to a new port.
Fields§
§session_id: u32The ID of the session to remap.
crc_seed: u32The CRC seed being used in the session.
Implementations§
Source§impl RemapConnection
impl RemapConnection
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 RemapConnection
impl Clone for RemapConnection
Source§fn clone(&self) -> RemapConnection
fn clone(&self) -> RemapConnection
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 moreimpl Copy for RemapConnection
Source§impl Debug for RemapConnection
impl Debug for RemapConnection
impl Eq for RemapConnection
Source§impl PartialEq for RemapConnection
impl PartialEq for RemapConnection
Source§fn eq(&self, other: &RemapConnection) -> bool
fn eq(&self, other: &RemapConnection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RemapConnection
Auto Trait Implementations§
impl Freeze for RemapConnection
impl RefUnwindSafe for RemapConnection
impl Send for RemapConnection
impl Sync for RemapConnection
impl Unpin for RemapConnection
impl UnsafeUnpin for RemapConnection
impl UnwindSafe for RemapConnection
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