[][src]Struct gdnative::WebSocketClient

pub struct WebSocketClient { /* fields omitted */ }

core class WebSocketClient 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

WebSocketClient inherits methods from:

Methods

impl WebSocketClient[src]

pub fn new() -> WebSocketClient[src]

pub fn new_ref(&self) -> WebSocketClient[src]

Creates a new reference to the same reference-counted object.

pub fn connect_to_url(
    &mut self,
    url: GodotString,
    protocols: StringArray,
    gd_mp_api: bool,
    custom_headers: StringArray
) -> Result<(), GodotError>
[src]

pub fn disconnect_from_host(&mut self, code: i64, reason: GodotString)[src]

pub fn get_connected_host(&self) -> GodotString[src]

pub fn get_connected_port(&self) -> i64[src]

pub fn get_trusted_ssl_certificate(&self) -> Option<X509Certificate>[src]

pub fn is_verify_ssl_enabled(&self) -> bool[src]

pub fn set_trusted_ssl_certificate(&mut self, arg0: Option<X509Certificate>)[src]

pub fn set_verify_ssl_enabled(&mut self, enabled: bool)[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>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Methods from Deref<Target = WebSocketMultiplayerPeer>

pub fn new_ref(&self) -> WebSocketMultiplayerPeer[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
) -> Result<(), GodotError>
[src]

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>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Trait Implementations

impl Clone for WebSocketClient[src]

impl Debug for WebSocketClient[src]

impl Deref for WebSocketClient[src]

type Target = WebSocketMultiplayerPeer

The resulting type after dereferencing.

impl DerefMut for WebSocketClient[src]

impl Drop for WebSocketClient[src]

impl FromVariant for WebSocketClient[src]

impl GodotObject for WebSocketClient[src]

impl Instanciable for WebSocketClient[src]

impl ToVariant for WebSocketClient[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Export for T where
    T: GodotObject + ToVariant
[src]

type Hint = ()

A type-specific hint type that is valid for the type being exported.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.