pub struct MulticastBetaConfig {
pub enabled: bool,
pub group_address: String,
pub port: u16,
pub interface: Option<String>,
}Expand description
Configuration for reliable UDP multicast transport.
Use this configuration to enable peer-to-peer data synchronization over a multicast group.
This does not configure multicast-based LAN discovery. Use
LanConfig::multicast_enabled for that setting.
On iOS and Android, configure this transport while sync is stopped. Changes requested while sync is active take effect after sync is stopped and successfully started again, when Ditto validates platform prerequisites.
This feature is in private beta and should only be used in coordination with Ditto support.
Fields§
§enabled: boolWhether reliable UDP multicast transport is enabled. This private beta feature should only be enabled in coordination with Ditto support.
group_address: StringIPv4 multicast group address (e.g. 224.1.2.3). All peers in the
mesh must use the same address.
port: u16UDP port. All peers must use the same port.
interface: Option<String>Network interface name to bind to (e.g. en0, wlan0). When None,
the OS picks one — typically the default route interface.
Implementations§
Source§impl MulticastBetaConfig
impl MulticastBetaConfig
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new MulticastBetaConfig with default settings.
Trait Implementations§
Source§impl Clone for MulticastBetaConfig
impl Clone for MulticastBetaConfig
Source§fn clone(&self) -> MulticastBetaConfig
fn clone(&self) -> MulticastBetaConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more