#[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_voidTrait Implementations§
Source§impl Clone for godot_net_stream_peer
impl Clone for godot_net_stream_peer
Source§fn clone(&self) -> godot_net_stream_peer
fn clone(&self) -> godot_net_stream_peer
Returns a duplicate of the value. Read more
1.0.0 · 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 godot_net_stream_peer
impl Debug for godot_net_stream_peer
Source§impl Default for godot_net_stream_peer
impl Default for godot_net_stream_peer
impl Copy for godot_net_stream_peer
Auto Trait Implementations§
impl Freeze for godot_net_stream_peer
impl RefUnwindSafe for godot_net_stream_peer
impl !Send for godot_net_stream_peer
impl !Sync for godot_net_stream_peer
impl Unpin for godot_net_stream_peer
impl UnwindSafe for godot_net_stream_peer
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