pub struct ListenerOptions { /* private fields */ }Expand description
The Discovery Server a listener connects to.
Without an explicit server the SDK uses the Discovery Server from the NDI configuration. Creation fails when it names no server or one the SDK cannot use.
Implementations§
Source§impl ListenerOptions
impl ListenerOptions
Sourcepub fn clear_server(self) -> Self
pub fn clear_server(self) -> Self
Inherit the Discovery Server endpoint from the NDI configuration.
Sourcepub fn clear_config(self) -> Self
pub fn clear_config(self) -> Self
Remove the per-instance Advanced configuration override.
Sourcepub fn configured_server(&self) -> Option<&str>
pub fn configured_server(&self) -> Option<&str>
Requested server endpoint, or None to inherit the NDI configuration.
Sourcepub fn configured_config(&self) -> Option<&AdvancedConfig>
pub fn configured_config(&self) -> Option<&AdvancedConfig>
The stored Advanced configuration handle, if any.
Sourcepub fn server(self, server: impl Into<String>) -> Self
pub fn server(self, server: impl Into<String>) -> Self
Use one non-empty endpoint in place of the NDI configuration: a host name
or IP address, optionally followed by a colon and a port (5959 when
omitted). Use Self::clear_server to inherit the configuration.
The listener constructors refuse a comma-separated list of endpoints.
Sourcepub fn config(self, config: AdvancedConfig) -> Self
pub fn config(self, config: AdvancedConfig) -> Self
Create the listener with this per-instance Advanced SDK configuration, which it keeps for as long as it lives.
SendListener::new and RecvListener::new then need an Advanced
runtime, and a build with the Advanced SDK.