pub struct CMsgClientP2pConnectionFailInfo {
pub steam_id_dest: Option<u64>,
pub steam_id_src: Option<u64>,
pub app_id: Option<u32>,
pub ep2p_session_error: Option<u32>,
pub connection_id_dest: Option<u64>,
pub close_reason: Option<u32>,
pub close_message: Option<String>,
}Fields§
§steam_id_dest: Option<u64>§steam_id_src: Option<u64>§app_id: Option<u32>§ep2p_session_error: Option<u32>§connection_id_dest: Option<u64>§close_reason: Option<u32>§close_message: Option<String>Implementations§
Source§impl CMsgClientP2pConnectionFailInfo
impl CMsgClientP2pConnectionFailInfo
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 ep2p_session_error(&self) -> u32
pub fn ep2p_session_error(&self) -> u32
Returns the value of ep2p_session_error, or the default value if ep2p_session_error is unset.
Sourcepub fn connection_id_dest(&self) -> u64
pub fn connection_id_dest(&self) -> u64
Returns the value of connection_id_dest, or the default value if connection_id_dest is unset.
Sourcepub fn close_reason(&self) -> u32
pub fn close_reason(&self) -> u32
Returns the value of close_reason, or the default value if close_reason is unset.
Sourcepub fn close_message(&self) -> &str
pub fn close_message(&self) -> &str
Returns the value of close_message, or the default value if close_message is unset.
Trait Implementations§
Source§impl Clone for CMsgClientP2pConnectionFailInfo
impl Clone for CMsgClientP2pConnectionFailInfo
Source§fn clone(&self) -> CMsgClientP2pConnectionFailInfo
fn clone(&self) -> CMsgClientP2pConnectionFailInfo
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 Eq for CMsgClientP2pConnectionFailInfo
Source§impl Message for CMsgClientP2pConnectionFailInfo
impl Message for CMsgClientP2pConnectionFailInfo
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 CMsgClientP2pConnectionFailInfo
impl PartialEq for CMsgClientP2pConnectionFailInfo
Source§fn eq(&self, other: &CMsgClientP2pConnectionFailInfo) -> bool
fn eq(&self, other: &CMsgClientP2pConnectionFailInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CMsgClientP2pConnectionFailInfo
Auto Trait Implementations§
impl Freeze for CMsgClientP2pConnectionFailInfo
impl RefUnwindSafe for CMsgClientP2pConnectionFailInfo
impl Send for CMsgClientP2pConnectionFailInfo
impl Sync for CMsgClientP2pConnectionFailInfo
impl Unpin for CMsgClientP2pConnectionFailInfo
impl UnsafeUnpin for CMsgClientP2pConnectionFailInfo
impl UnwindSafe for CMsgClientP2pConnectionFailInfo
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