Struct gdnative::TCP_Server [−][src]
pub struct TCP_Server { /* fields omitted */ }
core class TCP_Server : Reference
(reference counted)
Base class
TCP_Server inherits Reference and all of its methods.
Memory management
The lifetime of this object is automatically managed through reference counting.
Methods
impl TCP_Server
[src]
impl TCP_Server
pub fn as_reference(&self) -> Reference
[src]
pub fn as_reference(&self) -> Reference
Up-cast.
pub fn new() -> Self
[src]
pub fn new() -> Self
pub fn new_ref(&self) -> Self
[src]
pub fn new_ref(&self) -> Self
Creates a new reference to the same object.
pub fn listen(&mut self, port: i64, bind_address: GodotString) -> GodotResult
[src]
pub fn listen(&mut self, port: i64, bind_address: GodotString) -> GodotResult
pub fn is_connection_available(&self) -> bool
[src]
pub fn is_connection_available(&self) -> bool
pub fn take_connection(&mut self) -> Option<StreamPeerTCP>
[src]
pub fn take_connection(&mut self) -> Option<StreamPeerTCP>
pub fn stop(&mut self)
[src]
pub fn stop(&mut self)
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Methods from Deref<Target = Reference>
pub fn as_object(&self) -> Object
[src]
pub fn as_object(&self) -> Object
Up-cast.
pub fn init_ref(&mut self) -> bool
[src]
pub fn init_ref(&mut self) -> bool
pub fn reference(&mut self) -> bool
[src]
pub fn reference(&mut self) -> bool
pub fn unreference(&mut self) -> bool
[src]
pub fn unreference(&mut self) -> bool
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
pub fn cast<T: GodotObject>(&self) -> Option<T>
Trait Implementations
impl GodotObject for TCP_Server
[src]
impl GodotObject for TCP_Server
fn class_name() -> &'static str
[src]
fn class_name() -> &'static str
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
unsafe fn to_sys(&self) -> *mut godot_object
[src]
unsafe fn to_sys(&self) -> *mut godot_object
impl Deref for TCP_Server
[src]
impl Deref for TCP_Server
type Target = Reference
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
fn deref(&self) -> &Self::Target
Dereferences the value.
impl DerefMut for TCP_Server
[src]
impl DerefMut for TCP_Server
impl Drop for TCP_Server
[src]
impl Drop for TCP_Server
Auto Trait Implementations
impl !Send for TCP_Server
impl !Send for TCP_Server
impl !Sync for TCP_Server
impl !Sync for TCP_Server