pub struct MasterChannelConfig {
pub master_address: EndpointAddress,
pub decode_level: DecodeLevel,
pub tx_buffer_size: BufferSize<249, 2048>,
pub rx_buffer_size: BufferSize<2048, 2048>,
}Expand description
Configuration for a MasterChannel that is independent of the physical layer
Fields§
§master_address: EndpointAddressLocal DNP3 master address
decode_level: DecodeLevelDecode-level for DNP3 objects
tx_buffer_size: BufferSize<249, 2048>TX buffer size
Must be at least 249.
rx_buffer_size: BufferSize<2048, 2048>RX buffer size
Must be at least 2048.
Implementations§
Source§impl MasterChannelConfig
impl MasterChannelConfig
Sourcepub fn new(master_address: EndpointAddress) -> Self
pub fn new(master_address: EndpointAddress) -> Self
Create a configuration with default buffer sizes and no decoding
Trait Implementations§
Source§impl Clone for MasterChannelConfig
impl Clone for MasterChannelConfig
Source§fn clone(&self) -> MasterChannelConfig
fn clone(&self) -> MasterChannelConfig
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 moreimpl Copy for MasterChannelConfig
Auto Trait Implementations§
impl Freeze for MasterChannelConfig
impl RefUnwindSafe for MasterChannelConfig
impl Send for MasterChannelConfig
impl Sync for MasterChannelConfig
impl Unpin for MasterChannelConfig
impl UnsafeUnpin for MasterChannelConfig
impl UnwindSafe for MasterChannelConfig
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