Struct gdnative_sys::godot_net_packet_peer
source · [−]#[repr(C)]pub struct godot_net_packet_peer {
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 next: *mut c_void,
}Fields
version: godot_gdnative_api_versiondata: *mut godot_objectget_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>next: *mut c_voidTrait Implementations
sourceimpl Clone for godot_net_packet_peer
impl Clone for godot_net_packet_peer
sourcefn clone(&self) -> godot_net_packet_peer
fn clone(&self) -> godot_net_packet_peer
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 godot_net_packet_peer
impl Debug for godot_net_packet_peer
sourceimpl Default for godot_net_packet_peer
impl Default for godot_net_packet_peer
impl Copy for godot_net_packet_peer
Auto Trait Implementations
impl RefUnwindSafe for godot_net_packet_peer
impl !Send for godot_net_packet_peer
impl !Sync for godot_net_packet_peer
impl Unpin for godot_net_packet_peer
impl UnwindSafe for godot_net_packet_peer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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