Struct matchbox_signaling::SignalingServer
source · pub struct SignalingServer { /* private fields */ }
Expand description
Contains the interface end of a signaling server
Implementations§
source§impl SignalingServer
impl SignalingServer
Common methods
sourcepub fn full_mesh_builder(
socket_addr: impl Into<SocketAddr>
) -> SignalingServerBuilder<FullMesh, FullMeshCallbacks, FullMeshState>
pub fn full_mesh_builder( socket_addr: impl Into<SocketAddr> ) -> SignalingServerBuilder<FullMesh, FullMeshCallbacks, FullMeshState>
Creates a new builder for a SignalingServer
with full-mesh topology.
sourcepub fn client_server_builder(
socket_addr: impl Into<SocketAddr>
) -> SignalingServerBuilder<ClientServer, ClientServerCallbacks, ClientServerState>
pub fn client_server_builder( socket_addr: impl Into<SocketAddr> ) -> SignalingServerBuilder<ClientServer, ClientServerCallbacks, ClientServerState>
Creates a new builder for a SignalingServer
with client-server topology.
sourcepub fn local_addr(&self) -> Option<SocketAddr>
pub fn local_addr(&self) -> Option<SocketAddr>
Returns the local address this server is bound to
The server needs to [bind
] first
sourcepub fn bind(&mut self) -> Result<SocketAddr, Error>
pub fn bind(&mut self) -> Result<SocketAddr, Error>
Binds the server to a socket
Optional: Will happen automatically on [serve
]
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SignalingServer
impl Send for SignalingServer
impl !Sync for SignalingServer
impl Unpin for SignalingServer
impl !UnwindSafe for SignalingServer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more