pub struct TcpClient<'a, B, C> { /* private fields */ }
Expand description
A client type that connects to and performs send/receive operations with a remote server using the TCP protocol.
Implementations§
Source§impl<'a, B, C> TcpClient<'a, B, C>
impl<'a, B, C> TcpClient<'a, B, C>
Sourcepub fn server_ip_address(&self) -> Option<IpAddress>
pub fn server_ip_address(&self) -> Option<IpAddress>
Get an IpAddress
of the remote server to communicate with that is
set by calling TcpClient::connect
.
Sourcepub fn server_hostname(&self) -> &str
pub fn server_hostname(&self) -> &str
Get a Hostname
of the remote server to communicate with that is
set by calling TcpClient::connect
.
Sourcepub fn port(&self) -> Port
pub fn port(&self) -> Port
Get a Port
of the remote server to communicate with that is
set by calling TcpClient::connect
.
Sourcepub fn mode(&self) -> TransportMode
pub fn mode(&self) -> TransportMode
Get a TransportMode
used in communication with the remote server that is
set by calling TcpClient::connect
.
Sourcepub fn get_socket(&mut self) -> Result<u8, Error>
pub fn get_socket(&mut self) -> Result<u8, Error>
Request current Socket
handle.
Trait Implementations§
Auto Trait Implementations§
impl<'a, B, C> Freeze for TcpClient<'a, B, C>
impl<'a, B, C> !RefUnwindSafe for TcpClient<'a, B, C>
impl<'a, B, C> Send for TcpClient<'a, B, C>
impl<'a, B, C> !Sync for TcpClient<'a, B, C>
impl<'a, B, C> Unpin for TcpClient<'a, B, C>
impl<'a, B, C> !UnwindSafe for TcpClient<'a, B, C>
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