#[repr(C)]
pub struct godot_net_stream_peer { pub version: godot_gdnative_api_version, pub data: *mut godot_object, pub get_data: Option<unsafe extern "C" fn(user: *mut c_void, p_buffer: *mut u8, p_bytes: c_int) -> godot_error>, pub get_partial_data: Option<unsafe extern "C" fn(user: *mut c_void, p_buffer: *mut u8, p_bytes: c_int, r_received: *mut c_int) -> godot_error>, pub put_data: Option<unsafe extern "C" fn(user: *mut c_void, p_data: *const u8, p_bytes: c_int) -> godot_error>, pub put_partial_data: Option<unsafe extern "C" fn(user: *mut c_void, p_data: *const u8, p_bytes: c_int, r_sent: *mut c_int) -> godot_error>, pub get_available_bytes: Option<unsafe extern "C" fn(user: *const c_void) -> c_int>, pub next: *mut c_void, }

Fields§

§version: godot_gdnative_api_version§data: *mut godot_object§get_data: Option<unsafe extern "C" fn(user: *mut c_void, p_buffer: *mut u8, p_bytes: c_int) -> godot_error>§get_partial_data: Option<unsafe extern "C" fn(user: *mut c_void, p_buffer: *mut u8, p_bytes: c_int, r_received: *mut c_int) -> godot_error>§put_data: Option<unsafe extern "C" fn(user: *mut c_void, p_data: *const u8, p_bytes: c_int) -> godot_error>§put_partial_data: Option<unsafe extern "C" fn(user: *mut c_void, p_data: *const u8, p_bytes: c_int, r_sent: *mut c_int) -> godot_error>§get_available_bytes: Option<unsafe extern "C" fn(user: *const c_void) -> c_int>§next: *mut c_void

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.