pub struct SessionRequest {
pub soe_protocol_version: u32,
pub session_id: u32,
pub udp_length: u32,
pub application_protocol: String,
}Expand description
A packet used to request the start of a session.
Fields§
§soe_protocol_version: u32The version of the SOE protocol in use.
session_id: u32A randomly generated session identifier.
udp_length: u32The maximum length of a UDP packet that the sender can receive.
application_protocol: StringThe application protocol that the sender wishes to transport.
Implementations§
Source§impl SessionRequest
impl SessionRequest
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 SessionRequest
impl Clone for SessionRequest
Source§fn clone(&self) -> SessionRequest
fn clone(&self) -> SessionRequest
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 SessionRequest
impl Debug for SessionRequest
impl Eq for SessionRequest
Source§impl PartialEq for SessionRequest
impl PartialEq for SessionRequest
Source§fn eq(&self, other: &SessionRequest) -> bool
fn eq(&self, other: &SessionRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionRequest
Auto Trait Implementations§
impl Freeze for SessionRequest
impl RefUnwindSafe for SessionRequest
impl Send for SessionRequest
impl Sync for SessionRequest
impl Unpin for SessionRequest
impl UnsafeUnpin for SessionRequest
impl UnwindSafe for SessionRequest
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