pub struct TcpUdpSetupConfig {
pub logical_name: ObisCode,
pub tcp_udp_port: u16,
pub ip_reference: Vec<u8>,
pub mss: u16,
pub nb_of_sim_conn: u8,
pub inactivity_time_out: u16,
}Expand description
Configuration structure used to build a TcpUdpSetup object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
tcp_udp_port: u16Attribute 2: TCP or UDP port the server listens on.
ip_reference: Vec<u8>Attribute 3: reference to the IP setup object (octet-string logical name).
mss: u16Attribute 4: maximum segment size (default 576).
nb_of_sim_conn: u8Attribute 5: number of simultaneous connections.
inactivity_time_out: u16Attribute 6: inactivity time-out in seconds (default 180).
Trait Implementations§
Source§impl Clone for TcpUdpSetupConfig
impl Clone for TcpUdpSetupConfig
Source§fn clone(&self) -> TcpUdpSetupConfig
fn clone(&self) -> TcpUdpSetupConfig
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 moreSource§impl Debug for TcpUdpSetupConfig
impl Debug for TcpUdpSetupConfig
Source§impl<'de> Deserialize<'de> for TcpUdpSetupConfig
impl<'de> Deserialize<'de> for TcpUdpSetupConfig
Source§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 Freeze for TcpUdpSetupConfig
impl RefUnwindSafe for TcpUdpSetupConfig
impl Send for TcpUdpSetupConfig
impl Sync for TcpUdpSetupConfig
impl Unpin for TcpUdpSetupConfig
impl UnsafeUnpin for TcpUdpSetupConfig
impl UnwindSafe for TcpUdpSetupConfig
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