pub struct RecvAdvertisement { /* private fields */ }Expand description
How a receiver is advertised. Monitoring and remote source control are disabled unless explicitly enabled.
Implementations§
Source§impl RecvAdvertisement
impl RecvAdvertisement
Sourcepub fn clear_input_group(self) -> Self
pub fn clear_input_group(self) -> Self
Remove the explicitly requested receiver input group.
Sourcepub fn configured_allow_monitoring(&self) -> bool
pub fn configured_allow_monitoring(&self) -> bool
Whether remote monitoring was requested.
Sourcepub fn configured_allow_controlling(&self) -> bool
pub fn configured_allow_controlling(&self) -> bool
Whether remote source control was requested.
Sourcepub fn configured_input_group(&self) -> Option<&str>
pub fn configured_input_group(&self) -> Option<&str>
Requested input group, if any.
Sourcepub fn new() -> Self
pub fn new() -> Self
The default advertisement: no remote monitoring or source control, and no input group.
Sourcepub fn allow_monitoring(self, enabled: bool) -> Self
pub fn allow_monitoring(self, enabled: bool) -> Self
Permit remote monitoring.
Sourcepub fn allow_controlling(self, enabled: bool) -> Self
pub fn allow_controlling(self, enabled: bool) -> Self
Permit Discovery Server clients to change this receiver’s source.
Remote changes are observed through Receiver::wait_for_source_name_change.
They do not update Receiver::connection_target, the latest local
request; Receiver::reconnect requests that local target again and
replaces any remote routing.
Registering with this enabled requires remote receiver control, which is unavailable on Standard Windows runtimes.
Sourcepub fn input_group(self, group: impl Into<String>) -> Self
pub fn input_group(self, group: impl Into<String>) -> Self
Name the receiver’s input group. Receivers that share a group name, such as the video and audio receivers of one input, are presented together.