[−][src]Struct gdnative::WebSocketClient
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:
Implementations
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]
&mut self,
url: GodotString,
protocols: StringArray,
gd_mp_api: bool,
custom_headers: StringArray
) -> Result<(), GodotError>
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]
T: GodotObject,
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]
&mut self,
input_buffer_size_kb: i64,
input_max_packets: i64,
output_buffer_size_kb: i64,
output_max_packets: i64
) -> Result<(), GodotError>
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]
T: GodotObject,
Generic dynamic cast.
Trait Implementations
impl Clone for WebSocketClient
[src]
fn clone(&self) -> WebSocketClient
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WebSocketClient
[src]
impl Deref for WebSocketClient
[src]
type Target = WebSocketMultiplayerPeer
The resulting type after dereferencing.
fn deref(&self) -> &WebSocketMultiplayerPeer
[src]
impl DerefMut for WebSocketClient
[src]
fn deref_mut(&mut self) -> &mut WebSocketMultiplayerPeer
[src]
impl Drop for WebSocketClient
[src]
impl FromVariant for WebSocketClient
[src]
fn from_variant(variant: &Variant) -> Result<WebSocketClient, FromVariantError>
[src]
impl GodotObject for WebSocketClient
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut c_void) -> WebSocketClient
[src]
unsafe fn from_return_position_sys(obj: *mut c_void) -> WebSocketClient
[src]
unsafe fn to_sys(&self) -> *mut c_void
[src]
unsafe fn claim(&self) -> Self
[src]
impl Instanciable for WebSocketClient
[src]
fn construct() -> WebSocketClient
[src]
impl ToVariant for WebSocketClient
[src]
fn to_variant(&self) -> Variant
[src]
Auto Trait Implementations
impl RefUnwindSafe for WebSocketClient
impl !Send for WebSocketClient
impl !Sync for WebSocketClient
impl Unpin for WebSocketClient
impl UnwindSafe for WebSocketClient
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>,