pub struct CommsConfig {
    pub max_num_handlers: Option<u16>,
    pub downlink_ports: Option<Vec<u16>>,
    pub timeout: Option<u64>,
    pub ip: String,
}
Expand description

A struct that holds useful configuration options to use in a comms-service implementation. Created by parsing a configuration file in the toml file format.

Fields

max_num_handlers: Option<u16>

The maximum number of concurrent message handlers allowed Default: 50

downlink_ports: Option<Vec<u16>>

Optional list of ports used by downlink endpoints that send messages to the ground. Each port in the list will be used by one downlink endpoint.

timeout: Option<u64>

Timeout for the completion of GraphQL operations within message handlers (in milliseconds). Default: 1500

ip: String

Required. IP address on which comms service will listen.

Implementations

Builds a new configuration for a specific comms-service. Configuration parameters are read from the service’s config.toml file.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.