Struct fxbox_taxonomy::api::WatchOptions [] [src]

pub struct WatchOptions {
    pub source: GetSelector,
    pub should_watch_values: bool,
    pub should_watch_topology: bool,
    // some fields omitted
}

Options for watching changes in one or more channels.

Fields

source

The set of inputs to watch. Note that the actual inputs in the set may change over time.

should_watch_values

If true, watch as new values become available.

should_watch_topology

If true, watch as nodes are connected/disconnected.

Methods

impl WatchOptions

fn new() -> Self

fn with_inputs(self, req: GetSelector) -> Self

Restrict to input channels in a given set.

Also note that the actual input channels that are part of the set may change with time, for instance if devices are added ore removed. The selector is live, i.e. the channel watch will continue watching any input channels that match req.

fn with_watch_values(self, should: bool) -> Self

fn with_watch_topology(self, should: bool) -> Self

Trait Implementations

impl Deserialize for WatchOptions

fn deserialize<__D>(deserializer: &mut __D) -> Result<WatchOptions, __D::Error> where __D: Deserializer

impl Serialize for WatchOptions

fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error> where __S: Serializer

Derived Implementations

impl Default for WatchOptions

fn default() -> WatchOptions

impl Debug for WatchOptions

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for WatchOptions

fn clone(&self) -> WatchOptions

1.0.0fn clone_from(&mut self, source: &Self)