#[repr(C)]
pub struct godot_net_multiplayer_peer {
Show 17 fields pub version: godot_gdnative_api_version, pub data: *mut godot_object, pub get_packet: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut *const u8, arg3: *mut c_int) -> godot_error>, pub put_packet: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const u8, arg3: c_int) -> godot_error>, pub get_available_packet_count: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_int>, pub get_max_packet_size: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_int>, pub set_transfer_mode: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: godot_int)>, pub get_transfer_mode: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_int>, pub set_target_peer: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: godot_int)>, pub get_packet_peer: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_int>, pub is_server: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_bool>, pub poll: Option<unsafe extern "C" fn(arg1: *mut c_void)>, pub get_unique_id: Option<unsafe extern "C" fn(arg1: *const c_void) -> i32>, pub set_refuse_new_connections: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: godot_bool)>, pub is_refusing_new_connections: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_bool>, pub get_connection_status: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_int>, pub next: *mut c_void,
}

Fields§

§version: godot_gdnative_api_version§data: *mut godot_object§get_packet: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *mut *const u8, arg3: *mut c_int) -> godot_error>§put_packet: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: *const u8, arg3: c_int) -> godot_error>§get_available_packet_count: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_int>§get_max_packet_size: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_int>§set_transfer_mode: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: godot_int)>§get_transfer_mode: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_int>§set_target_peer: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: godot_int)>§get_packet_peer: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_int>§is_server: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_bool>§poll: Option<unsafe extern "C" fn(arg1: *mut c_void)>§get_unique_id: Option<unsafe extern "C" fn(arg1: *const c_void) -> i32>§set_refuse_new_connections: Option<unsafe extern "C" fn(arg1: *mut c_void, arg2: godot_bool)>§is_refusing_new_connections: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_bool>§get_connection_status: Option<unsafe extern "C" fn(arg1: *const c_void) -> godot_int>§next: *mut c_void

Trait Implementations§

source§

impl Clone for godot_net_multiplayer_peer

source§

fn clone(&self) -> godot_net_multiplayer_peer

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for godot_net_multiplayer_peer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for godot_net_multiplayer_peer

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for godot_net_multiplayer_peer

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere
    T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.