pub struct RawWebSocketConfig {
pub listen_port: Option<u16>,
pub advertised_host: Option<String>,
}Expand description
WebSocket data transport configuration
Configuration example (actr.toml):
[system.websocket]
listen_port = 9001
advertised_host = "192.168.1.10"Fields§
§listen_port: Option<u16>Port for listening to inbound WebSocket connections (for direct mode)
When configured, the node starts a WebSocket server on this port, accepting direct connections from peer nodes. When not configured, the node does not listen on any port (relay mode only).
advertised_host: Option<String>Externally advertised WebSocket hostname or IP (for signaling registration)
When a node has listen_port configured, the signaling server needs an address
reachable by peer nodes. This field specifies the hostname or IP registered with
the signaling server, e.g., "192.168.1.10" or "mynode.example.com".
Defaults to "127.0.0.1" if not configured (suitable for local testing only).
Trait Implementations§
Source§impl Clone for RawWebSocketConfig
impl Clone for RawWebSocketConfig
Source§fn clone(&self) -> RawWebSocketConfig
fn clone(&self) -> RawWebSocketConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawWebSocketConfig
impl Debug for RawWebSocketConfig
Source§impl Default for RawWebSocketConfig
impl Default for RawWebSocketConfig
Source§fn default() -> RawWebSocketConfig
fn default() -> RawWebSocketConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RawWebSocketConfig
impl<'de> Deserialize<'de> for RawWebSocketConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RawWebSocketConfig
impl RefUnwindSafe for RawWebSocketConfig
impl Send for RawWebSocketConfig
impl Sync for RawWebSocketConfig
impl Unpin for RawWebSocketConfig
impl UnsafeUnpin for RawWebSocketConfig
impl UnwindSafe for RawWebSocketConfig
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