#[non_exhaustive]pub enum GnsConfigValue {
Float(f32),
Int32(i32),
Int64(i64),
String(String),
Ptr(*mut c_void),
}Expand description
A configuration value read back through GnsUtils::get_global_config_value
and friends.
Unlike GnsConfig, which borrows what you pass in, this type owns its
data, and it distinguishes Int64 because GameNetworkingSockets stores
some values (such as connection user data) as 64-bit integers.
The enum is non-exhaustive because it mirrors the GameNetworkingSockets data-type enum, which can grow.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for GnsConfigValue
impl Clone for GnsConfigValue
Source§fn clone(&self) -> GnsConfigValue
fn clone(&self) -> GnsConfigValue
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 GnsConfigValue
impl Debug for GnsConfigValue
Source§impl PartialEq for GnsConfigValue
impl PartialEq for GnsConfigValue
impl StructuralPartialEq for GnsConfigValue
Auto Trait Implementations§
impl !Send for GnsConfigValue
impl !Sync for GnsConfigValue
impl Freeze for GnsConfigValue
impl RefUnwindSafe for GnsConfigValue
impl Unpin for GnsConfigValue
impl UnsafeUnpin for GnsConfigValue
impl UnwindSafe for GnsConfigValue
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