Struct steamworks_sys::servernetadr_t
source · [−]#[repr(C)]pub struct servernetadr_t {
pub m_usConnectionPort: uint16,
pub m_usQueryPort: uint16,
pub m_unIP: uint32,
}
Fields
m_usConnectionPort: uint16
m_usQueryPort: uint16
m_unIP: uint32
Implementations
sourceimpl servernetadr_t
impl servernetadr_t
pub unsafe fn Init(
&mut self,
ip: c_uint,
usQueryPort: uint16,
usConnectionPort: uint16
)
pub unsafe fn GetQueryPort(&self) -> uint16
pub unsafe fn SetQueryPort(&mut self, usPort: uint16)
pub unsafe fn GetConnectionPort(&self) -> uint16
pub unsafe fn SetConnectionPort(&mut self, usPort: uint16)
pub unsafe fn GetIP(&self) -> uint32
pub unsafe fn SetIP(&mut self, unIP: uint32)
pub unsafe fn GetConnectionAddressString(&self) -> *const c_char
pub unsafe fn GetQueryAddressString(&self) -> *const c_char
Trait Implementations
sourceimpl Clone for servernetadr_t
impl Clone for servernetadr_t
sourcefn clone(&self) -> servernetadr_t
fn clone(&self) -> servernetadr_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
sourceimpl Debug for servernetadr_t
impl Debug for servernetadr_t
impl Copy for servernetadr_t
Auto Trait Implementations
impl RefUnwindSafe for servernetadr_t
impl Send for servernetadr_t
impl Sync for servernetadr_t
impl Unpin for servernetadr_t
impl UnwindSafe for servernetadr_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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more