[−][src]Struct gdnative_bindings::WebSocketServer
core class WebSocketServer
inherits WebSocketMultiplayerPeer
(reference counted).
Official documentation
See the documentation of this class in the Godot engine's official documentation.
Memory management
The lifetime of this object is automatically managed through reference counting.
Class hierarchy
WebSocketServer inherits methods from:
Methods
impl WebSocketServer
[src]
pub fn new() -> Self
[src]
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same reference-counted object.
pub fn disconnect_peer(&mut self, id: i64, code: i64, reason: GodotString)
[src]
pub fn get_bind_ip(&self) -> GodotString
[src]
pub fn get_ca_chain(&self) -> Option<X509Certificate>
[src]
pub fn get_peer_address(&self, id: i64) -> GodotString
[src]
pub fn get_peer_port(&self, id: i64) -> i64
[src]
pub fn get_private_key(&self) -> Option<CryptoKey>
[src]
pub fn get_ssl_certificate(&self) -> Option<X509Certificate>
[src]
pub fn has_peer(&self, id: i64) -> bool
[src]
pub fn is_listening(&self) -> bool
[src]
pub fn listen(
&mut self,
port: i64,
protocols: StringArray,
gd_mp_api: bool
) -> GodotResult
[src]
&mut self,
port: i64,
protocols: StringArray,
gd_mp_api: bool
) -> GodotResult
pub fn set_bind_ip(&mut self, arg0: GodotString)
[src]
pub fn set_ca_chain(&mut self, arg0: Option<X509Certificate>)
[src]
pub fn set_private_key(&mut self, arg0: Option<CryptoKey>)
[src]
pub fn set_ssl_certificate(&mut self, arg0: Option<X509Certificate>)
[src]
pub fn stop(&mut self)
[src]
pub fn to_web_socket_multiplayer_peer(&self) -> WebSocketMultiplayerPeer
[src]
Up-cast.
pub fn to_networked_multiplayer_peer(&self) -> NetworkedMultiplayerPeer
[src]
Up-cast.
pub fn to_packet_peer(&self) -> PacketPeer
[src]
Up-cast.
pub fn to_reference(&self) -> Reference
[src]
Up-cast.
pub fn to_object(&self) -> Object
[src]
Up-cast.
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Generic dynamic cast.
Methods from Deref<Target = WebSocketMultiplayerPeer>
pub fn new_ref(&self) -> Self
[src]
Creates a new reference to the same reference-counted object.
pub fn get_peer(&self, peer_id: i64) -> Option<WebSocketPeer>
[src]
pub fn set_buffers(
&mut self,
input_buffer_size_kb: i64,
input_max_packets: i64,
output_buffer_size_kb: i64,
output_max_packets: i64
) -> GodotResult
[src]
&mut self,
input_buffer_size_kb: i64,
input_max_packets: i64,
output_buffer_size_kb: i64,
output_max_packets: i64
) -> GodotResult
pub fn to_networked_multiplayer_peer(&self) -> NetworkedMultiplayerPeer
[src]
Up-cast.
pub fn to_packet_peer(&self) -> PacketPeer
[src]
Up-cast.
pub fn to_reference(&self) -> Reference
[src]
Up-cast.
pub fn to_object(&self) -> Object
[src]
Up-cast.
pub fn cast<T: GodotObject>(&self) -> Option<T>
[src]
Generic dynamic cast.
Trait Implementations
impl Clone for WebSocketServer
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WebSocketServer
[src]
impl Deref for WebSocketServer
[src]
type Target = WebSocketMultiplayerPeer
The resulting type after dereferencing.
fn deref(&self) -> &WebSocketMultiplayerPeer
[src]
impl DerefMut for WebSocketServer
[src]
fn deref_mut(&mut self) -> &mut WebSocketMultiplayerPeer
[src]
impl Drop for WebSocketServer
[src]
impl FromVariant for WebSocketServer
[src]
fn from_variant(variant: &Variant) -> Result<Self, FromVariantError>
[src]
impl GodotObject for WebSocketServer
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn from_return_position_sys(obj: *mut godot_object) -> Self
[src]
unsafe fn to_sys(&self) -> *mut godot_object
[src]
impl Instanciable for WebSocketServer
[src]
impl ToVariant for WebSocketServer
[src]
fn to_variant(&self) -> Variant
[src]
Auto Trait Implementations
impl RefUnwindSafe for WebSocketServer
impl !Send for WebSocketServer
impl !Sync for WebSocketServer
impl Unpin for WebSocketServer
impl UnwindSafe for WebSocketServer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Export for T where
T: GodotObject + ToVariant,
[src]
T: GodotObject + ToVariant,
type Hint = ()
A type-specific hint type that is valid for the type being exported.
fn export_info(_hint: Option<<T as Export>::Hint>) -> ExportInfo
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,