pub struct EdgeNodeConfig {
pub group: GroupId,
pub edge: EdgeNodeId,
pub devices: Vec<DeviceId>,
pub primary_host_id: Option<String>,
pub use_aliases: bool,
pub rebirth_debounce: Duration,
pub client_id: String,
pub host: String,
pub port: u16,
pub keep_alive_secs: u16,
pub tls: Option<TlsConfig>,
}Expand description
Configuration for an EdgeNode.
Fields§
§group: GroupIdGroup ID.
edge: EdgeNodeIdEdge Node ID.
devices: Vec<DeviceId>Devices reported by this Edge Node.
primary_host_id: Option<String>Optional primary Host Application ID to gate online/offline on.
use_aliases: boolAssign and use metric aliases on DATA messages.
rebirth_debounce: DurationDebounce window collapsing a storm of rebirth requests into one.
client_id: StringMQTT client id.
host: StringBroker host.
port: u16Broker port.
keep_alive_secs: u16Keep-alive interval, seconds.
tls: Option<TlsConfig>Optional TLS/mTLS configuration (honored with the tls feature).
Implementations§
Trait Implementations§
Source§impl Clone for EdgeNodeConfig
impl Clone for EdgeNodeConfig
Source§fn clone(&self) -> EdgeNodeConfig
fn clone(&self) -> EdgeNodeConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EdgeNodeConfig
impl RefUnwindSafe for EdgeNodeConfig
impl Send for EdgeNodeConfig
impl Sync for EdgeNodeConfig
impl Unpin for EdgeNodeConfig
impl UnsafeUnpin for EdgeNodeConfig
impl UnwindSafe for EdgeNodeConfig
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