pub struct CMsgClientP2pConnectionInfo {
pub steam_id_dest: Option<u64>,
pub steam_id_src: Option<u64>,
pub app_id: Option<u32>,
pub candidate: Option<Vec<u8>>,
pub legacy_connection_id_src: Option<u64>,
pub rendezvous: Option<Vec<u8>>,
pub app_id_secondary: Option<u32>,
}Fields§
§steam_id_dest: Option<u64>§steam_id_src: Option<u64>§app_id: Option<u32>§candidate: Option<Vec<u8>>§legacy_connection_id_src: Option<u64>§rendezvous: Option<Vec<u8>>§app_id_secondary: Option<u32>Implementations§
Source§impl CMsgClientP2pConnectionInfo
impl CMsgClientP2pConnectionInfo
Sourcepub fn steam_id_dest(&self) -> u64
pub fn steam_id_dest(&self) -> u64
Returns the value of steam_id_dest, or the default value if steam_id_dest is unset.
Sourcepub fn steam_id_src(&self) -> u64
pub fn steam_id_src(&self) -> u64
Returns the value of steam_id_src, or the default value if steam_id_src is unset.
Sourcepub fn app_id(&self) -> u32
pub fn app_id(&self) -> u32
Returns the value of app_id, or the default value if app_id is unset.
Sourcepub fn candidate(&self) -> &[u8] ⓘ
pub fn candidate(&self) -> &[u8] ⓘ
Returns the value of candidate, or the default value if candidate is unset.
Sourcepub fn legacy_connection_id_src(&self) -> u64
pub fn legacy_connection_id_src(&self) -> u64
Returns the value of legacy_connection_id_src, or the default value if legacy_connection_id_src is unset.
Sourcepub fn rendezvous(&self) -> &[u8] ⓘ
pub fn rendezvous(&self) -> &[u8] ⓘ
Returns the value of rendezvous, or the default value if rendezvous is unset.
Sourcepub fn app_id_secondary(&self) -> u32
pub fn app_id_secondary(&self) -> u32
Returns the value of app_id_secondary, or the default value if app_id_secondary is unset.
Trait Implementations§
Source§impl Clone for CMsgClientP2pConnectionInfo
impl Clone for CMsgClientP2pConnectionInfo
Source§fn clone(&self) -> CMsgClientP2pConnectionInfo
fn clone(&self) -> CMsgClientP2pConnectionInfo
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 CMsgClientP2pConnectionInfo
impl Debug for CMsgClientP2pConnectionInfo
impl Eq for CMsgClientP2pConnectionInfo
Source§impl Hash for CMsgClientP2pConnectionInfo
impl Hash for CMsgClientP2pConnectionInfo
Source§impl Message for CMsgClientP2pConnectionInfo
impl Message for CMsgClientP2pConnectionInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for CMsgClientP2pConnectionInfo
impl PartialEq for CMsgClientP2pConnectionInfo
Source§fn eq(&self, other: &CMsgClientP2pConnectionInfo) -> bool
fn eq(&self, other: &CMsgClientP2pConnectionInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CMsgClientP2pConnectionInfo
Auto Trait Implementations§
impl Freeze for CMsgClientP2pConnectionInfo
impl RefUnwindSafe for CMsgClientP2pConnectionInfo
impl Send for CMsgClientP2pConnectionInfo
impl Sync for CMsgClientP2pConnectionInfo
impl Unpin for CMsgClientP2pConnectionInfo
impl UnsafeUnpin for CMsgClientP2pConnectionInfo
impl UnwindSafe for CMsgClientP2pConnectionInfo
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