Struct station::config::Config [−][src]
pub struct Config { /* fields omitted */ }
Expand description
RPC and PubSub configuration.
Implementations
Add an RPC config entry based on TCP port usage.
Args:
name
: The name to associate the config with.addr
: The TCP socket address to use for the RPC listener.
Get the TCP port number for an RPC listener.
Args:
name
: The name in the config entries.
pub fn add_pubsub(
&mut self,
topic: &str,
endpoint: &PubSubEndpoint
) -> Result<(), ConfigError>
pub fn add_pubsub(
&mut self,
topic: &str,
endpoint: &PubSubEndpoint
) -> Result<(), ConfigError>
Add a PubSub endpoint to the config.
Args:
topic
: The PubSub topic to add the endpoint to.endpoint
: An endpoint for a publisher to publish to.
Get the config for a PubSub endpoint for a topic.
Args:
topic
: The PubSub topic to fetch endpoint configs for.endpoint
: The name of the PubSub endpoint to query.
Get the set of endpoint configs for a PubSub topic.
Args:
topic
: The PubSub topic to fetch endpoint configs for.
Check if a config exists for a PubSub topic.
Read a config from a YAML file.
Args:
path
: Path to the file to read.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more