Struct gns_sys::SteamNetworkingConfigValue_t
source · [−]#[repr(C)]pub struct SteamNetworkingConfigValue_t {
pub m_eValue: ESteamNetworkingConfigValue,
pub m_eDataType: ESteamNetworkingConfigDataType,
pub m_val: SteamNetworkingConfigValue_t__bindgen_ty_1,
}
Expand description
In a few places we need to set configuration options on listen sockets and connections, and have them take effect before the listen socket or connection really starts doing anything. Creating the object and then setting the options “immediately” after creation doesn’t work completely, because network packets could be received between the time the object is created and when the options are applied. To set options at creation time in a reliable way, they must be passed to the creation function. This structure is used to pass those options.
For the meaning of these fields, see ISteamNetworkingUtils::SetConfigValue. Basically when the object is created, we just iterate over the list of options and call ISteamNetworkingUtils::SetConfigValueStruct, where the scope arguments are supplied by the object being created.
Fields
m_eValue: ESteamNetworkingConfigValue
Which option is being set
m_eDataType: ESteamNetworkingConfigDataType
Which field below did you fill in?
m_val: SteamNetworkingConfigValue_t__bindgen_ty_1
Trait Implementations
sourceimpl Clone for SteamNetworkingConfigValue_t
impl Clone for SteamNetworkingConfigValue_t
sourcefn clone(&self) -> SteamNetworkingConfigValue_t
fn clone(&self) -> SteamNetworkingConfigValue_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for SteamNetworkingConfigValue_t
Auto Trait Implementations
impl RefUnwindSafe for SteamNetworkingConfigValue_t
impl !Send for SteamNetworkingConfigValue_t
impl !Sync for SteamNetworkingConfigValue_t
impl Unpin for SteamNetworkingConfigValue_t
impl UnwindSafe for SteamNetworkingConfigValue_t
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more