pub struct TcpConnectionFactory;
Expand description
Implementation of ClientFactory
for creating concrete TcpConnection
instances
that use a TCP socket.
Trait Implementations§
Source§impl ClientFactory<SocketAddr, TcpConnection> for TcpConnectionFactory
impl ClientFactory<SocketAddr, TcpConnection> for TcpConnectionFactory
Source§async fn make(&self, address: &SocketAddr) -> Result<TcpConnection, MtopError>
async fn make(&self, address: &SocketAddr) -> Result<TcpConnection, MtopError>
Create a new client instance based on its ID.
Source§impl Clone for TcpConnectionFactory
impl Clone for TcpConnectionFactory
Source§fn clone(&self) -> TcpConnectionFactory
fn clone(&self) -> TcpConnectionFactory
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TcpConnectionFactory
impl Debug for TcpConnectionFactory
Source§impl Default for TcpConnectionFactory
impl Default for TcpConnectionFactory
Source§fn default() -> TcpConnectionFactory
fn default() -> TcpConnectionFactory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TcpConnectionFactory
impl RefUnwindSafe for TcpConnectionFactory
impl Send for TcpConnectionFactory
impl Sync for TcpConnectionFactory
impl Unpin for TcpConnectionFactory
impl UnwindSafe for TcpConnectionFactory
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