pub struct ServerConfig {
pub interface: Ipv4Addr,
pub port: u16,
pub broadcast_address: Ipv4Addr,
pub max_apdu_length: u32,
pub segmentation_supported: Segmentation,
pub vendor_id: u16,
pub cov_retry_timeout_ms: u64,
pub on_time_sync: Option<Arc<dyn Fn(TimeSyncData) + Send + Sync>>,
pub dcc_password: Option<String>,
pub reinit_password: Option<String>,
pub enable_fault_detection: bool,
}Expand description
Server configuration.
Fields§
§interface: Ipv4AddrLocal interface to bind.
port: u16UDP port (default 0xBAC0 = 47808).
broadcast_address: Ipv4AddrDirected broadcast address.
max_apdu_length: u32Maximum APDU length accepted.
segmentation_supported: SegmentationSegmentation support level.
vendor_id: u16Vendor identifier.
cov_retry_timeout_ms: u64Timeout in ms before retrying a failed confirmed COV notification send (default 3000ms).
on_time_sync: Option<Arc<dyn Fn(TimeSyncData) + Send + Sync>>Optional callback invoked when a TimeSynchronization request is received.
dcc_password: Option<String>Optional password required for DeviceCommunicationControl (Clause 16.4.1).
reinit_password: Option<String>Optional password required for ReinitializeDevice (Clause 16.4.2).
enable_fault_detection: boolEnable periodic fault detection / reliability evaluation (Clause 12). When true, the server evaluates analog objects every 10 s for OVER_RANGE / UNDER_RANGE faults.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerConfig
impl Debug for ServerConfig
Auto Trait Implementations§
impl Freeze for ServerConfig
impl !RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl !UnwindSafe for ServerConfig
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