pub struct RtuTransport { /* private fields */ }Implementations§
Source§impl RtuTransport
impl RtuTransport
pub fn new( config: &RtuConfig, trace_frames: bool, ) -> Result<Self, TransportError>
pub async fn close(&self) -> Result<(), TransportError>
pub async fn transaction( &self, request: &[u8], response: &mut [u8], ) -> Result<usize, RelayError>
Auto Trait Implementations§
impl !Freeze for RtuTransport
impl !RefUnwindSafe for RtuTransport
impl Send for RtuTransport
impl Sync for RtuTransport
impl Unpin for RtuTransport
impl !UnwindSafe for RtuTransport
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