pub struct RtuApplicationLayerOptions {
pub interval_between_frames: Option<FrameInterval>,
pub inter_char_timeout: Option<FrameInterval>,
pub baud_rate: Option<u32>,
}Expand description
Options for RtuApplicationLayer. Mirrors njs-modbus
RtuApplicationLayerOptions.
Breaking change (v2): the constructor no longer takes separate positional arguments; all timing parameters live here.
Fields§
§interval_between_frames: Option<FrameInterval>§inter_char_timeout: Option<FrameInterval>§baud_rate: Option<u32>Trait Implementations§
Source§impl Clone for RtuApplicationLayerOptions
impl Clone for RtuApplicationLayerOptions
Source§fn clone(&self) -> RtuApplicationLayerOptions
fn clone(&self) -> RtuApplicationLayerOptions
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 RtuApplicationLayerOptions
impl Debug for RtuApplicationLayerOptions
Source§impl Default for RtuApplicationLayerOptions
impl Default for RtuApplicationLayerOptions
Source§fn default() -> RtuApplicationLayerOptions
fn default() -> RtuApplicationLayerOptions
Returns the “default value” for a type. Read more
impl Copy for RtuApplicationLayerOptions
Auto Trait Implementations§
impl Freeze for RtuApplicationLayerOptions
impl RefUnwindSafe for RtuApplicationLayerOptions
impl Send for RtuApplicationLayerOptions
impl Sync for RtuApplicationLayerOptions
impl Unpin for RtuApplicationLayerOptions
impl UnsafeUnpin for RtuApplicationLayerOptions
impl UnwindSafe for RtuApplicationLayerOptions
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