[−][src]Struct gdnative::WebRTCMultiplayer
core class WebRTCMultiplayer
inherits NetworkedMultiplayerPeer
(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
WebRTCMultiplayer inherits methods from:
Methods
impl WebRTCMultiplayer
[src]
pub fn new() -> WebRTCMultiplayer
[src]
pub fn new_ref(&self) -> WebRTCMultiplayer
[src]
Creates a new reference to the same reference-counted object.
pub fn add_peer(
&mut self,
peer: Option<WebRTCPeerConnection>,
peer_id: i64,
unreliable_lifetime: i64
) -> Result<(), GodotError>
[src]
&mut self,
peer: Option<WebRTCPeerConnection>,
peer_id: i64,
unreliable_lifetime: i64
) -> Result<(), GodotError>
pub fn close(&mut self)
[src]
pub fn get_peer(&mut self, peer_id: i64) -> Dictionary
[src]
pub fn get_peers(&mut self) -> Dictionary
[src]
pub fn has_peer(&mut self, peer_id: i64) -> bool
[src]
pub fn initialize(
&mut self,
peer_id: i64,
server_compatibility: bool
) -> Result<(), GodotError>
[src]
&mut self,
peer_id: i64,
server_compatibility: bool
) -> Result<(), GodotError>
pub fn remove_peer(&mut self, peer_id: i64)
[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]
T: GodotObject,
Generic dynamic cast.
Methods from Deref<Target = NetworkedMultiplayerPeer>
pub const TARGET_PEER_BROADCAST: i64
[src]
pub const CONNECTION_CONNECTING: i64
[src]
pub const TARGET_PEER_SERVER: i64
[src]
pub const CONNECTION_DISCONNECTED: i64
[src]
pub const TRANSFER_MODE_UNRELIABLE: i64
[src]
pub const TRANSFER_MODE_UNRELIABLE_ORDERED: i64
[src]
pub const CONNECTION_CONNECTED: i64
[src]
pub const TRANSFER_MODE_RELIABLE: i64
[src]
pub fn new_ref(&self) -> NetworkedMultiplayerPeer
[src]
Creates a new reference to the same reference-counted object.
pub fn get_connection_status(&self) -> NetworkedMultiplayerPeerConnectionStatus
[src]
pub fn get_packet_peer(&self) -> i64
[src]
pub fn get_transfer_mode(&self) -> NetworkedMultiplayerPeerTransferMode
[src]
pub fn get_unique_id(&self) -> i64
[src]
pub fn is_refusing_new_connections(&self) -> bool
[src]
pub fn poll(&mut self)
[src]
pub fn set_refuse_new_connections(&mut self, enable: bool)
[src]
pub fn set_target_peer(&mut self, id: i64)
[src]
pub fn set_transfer_mode(&mut self, mode: i64)
[src]
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 WebRTCMultiplayer
[src]
fn clone(&self) -> WebRTCMultiplayer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for WebRTCMultiplayer
[src]
impl Deref for WebRTCMultiplayer
[src]
type Target = NetworkedMultiplayerPeer
The resulting type after dereferencing.
fn deref(&self) -> &NetworkedMultiplayerPeer
[src]
impl DerefMut for WebRTCMultiplayer
[src]
fn deref_mut(&mut self) -> &mut NetworkedMultiplayerPeer
[src]
impl Drop for WebRTCMultiplayer
[src]
impl FromVariant for WebRTCMultiplayer
[src]
fn from_variant(
variant: &Variant
) -> Result<WebRTCMultiplayer, FromVariantError>
[src]
variant: &Variant
) -> Result<WebRTCMultiplayer, FromVariantError>
impl GodotObject for WebRTCMultiplayer
[src]
fn class_name() -> &'static str
[src]
unsafe fn from_sys(obj: *mut c_void) -> WebRTCMultiplayer
[src]
unsafe fn from_return_position_sys(obj: *mut c_void) -> WebRTCMultiplayer
[src]
unsafe fn to_sys(&self) -> *mut c_void
[src]
impl Instanciable for WebRTCMultiplayer
[src]
fn construct() -> WebRTCMultiplayer
[src]
impl ToVariant for WebRTCMultiplayer
[src]
fn to_variant(&self) -> Variant
[src]
Auto Trait Implementations
impl RefUnwindSafe for WebRTCMultiplayer
impl !Send for WebRTCMultiplayer
impl !Sync for WebRTCMultiplayer
impl Unpin for WebRTCMultiplayer
impl UnwindSafe for WebRTCMultiplayer
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>,