pub enum OpcCommand {
Servers {
bridge_host: Option<String>,
},
Read {
bridge_host: Option<String>,
server: Option<String>,
tags: Vec<String>,
},
Write {
bridge_host: Option<String>,
server: Option<String>,
tag: String,
value: String,
},
Browse {
bridge_host: Option<String>,
server: Option<String>,
session_id: Option<String>,
parent_node_key: Option<String>,
page_token: Option<String>,
page_size: u32,
all: bool,
refresh: bool,
},
Close {
bridge_host: Option<String>,
session_id: String,
},
Search {
bridge_host: Option<String>,
server: Option<String>,
query: String,
match_mode: OpcSearchMatchModeArg,
max_results: u32,
session_id: Option<String>,
scope_node_key: Option<String>,
include_branches: bool,
refresh: bool,
},
SearchIndex {
command: SearchIndexCommand,
},
}Variants§
Servers
List the OPC DA servers registered on the bridge gateway’s host.
Fields
Read
Read one or more tags.
Fields
§
bridge_host: Option<String>(default: crate::config::DEFAULT_BRIDGE_HOST, overridable via BHTUNE_BRIDGE_HOST
or the config file’s bridge_host key.)
Write
Write a value to one tag.
Browse
Browse one bounded page of tags. Without a session, lists the root level.
Fields
Close
Explicitly release a gateway browse session returned by opc browse.
Fields
Search
Search the OPC DA namespace without downloading the whole tree.
Fields
§
match_mode: OpcSearchMatchModeArgHow the query should match.
SearchIndex
Query and manage the gateway’s persistent namespace search index.
Fields
§
command: SearchIndexCommandTrait Implementations§
Source§impl Debug for OpcCommand
impl Debug for OpcCommand
Source§impl FromArgMatches for OpcCommand
impl FromArgMatches for OpcCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for OpcCommand
impl Subcommand for OpcCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for OpcCommand
impl RefUnwindSafe for OpcCommand
impl Send for OpcCommand
impl Sync for OpcCommand
impl Unpin for OpcCommand
impl UnsafeUnpin for OpcCommand
impl UnwindSafe for OpcCommand
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].