pub struct NoPin;Expand description
No-op TX-enable pin for hardware that does not need RS-485 direction control.
Pass this to BridgeBuilder::rtu when your RS-485 transceiver handles bus
direction automatically (e.g. auto-direction-control adapters, full-duplex
wiring, or RS-232 connections). BridgeBuilder::rtu_no_pin is a
convenience shorthand that inserts NoPin for you.
§Examples
ⓘ
use modbus_bridge::{Bridge, NoPin};
let mut bridge = Bridge::builder()
.rtu(uart, NoPin)
.build();Trait Implementations§
Auto Trait Implementations§
impl Freeze for NoPin
impl RefUnwindSafe for NoPin
impl Send for NoPin
impl Sync for NoPin
impl Unpin for NoPin
impl UnsafeUnpin for NoPin
impl UnwindSafe for NoPin
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