pub struct ModbusTcpServer<S> { /* private fields */ }Implementations§
Source§impl<S: ModbusService> ModbusTcpServer<S>
impl<S: ModbusService> ModbusTcpServer<S>
pub async fn bind<A: ToSocketAddrs>( addr: A, service: S, ) -> Result<Self, DataLinkError>
pub fn from_listener(listener: TcpListener, service: S) -> Self
pub fn local_addr(&self) -> Result<SocketAddr, DataLinkError>
pub fn with_max_pdu_len(self, max_pdu_len: usize) -> Self
pub async fn run(self) -> Result<(), DataLinkError>
Auto Trait Implementations§
impl<S> !Freeze for ModbusTcpServer<S>
impl<S> RefUnwindSafe for ModbusTcpServer<S>where
S: RefUnwindSafe,
impl<S> Send for ModbusTcpServer<S>
impl<S> Sync for ModbusTcpServer<S>
impl<S> Unpin for ModbusTcpServer<S>
impl<S> UnsafeUnpin for ModbusTcpServer<S>
impl<S> UnwindSafe for ModbusTcpServer<S>where
S: RefUnwindSafe,
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