pub struct TokioSocketBase;
Trait Implementations§
Source§impl Clone for TokioSocketBase
impl Clone for TokioSocketBase
Source§fn clone(&self) -> TokioSocketBase
fn clone(&self) -> TokioSocketBase
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TokioSocketBase
impl Debug for TokioSocketBase
Source§impl SocketTap<TokioSocketBase> for NetworkTap<TcpStream, TokioSocketBase>
impl SocketTap<TokioSocketBase> for NetworkTap<TcpStream, TokioSocketBase>
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
conn_timeout: Option<Duration>,
) -> Pin<Box<dyn Future<Output = CDnsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
conn_timeout: Option<Duration>,
) -> Pin<Box<dyn Future<Output = CDnsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connects to the remote host.
Source§fn is_encrypted(&self) -> bool
fn is_encrypted(&self) -> bool
Tells if current instace is
encrypted
i.e [TcpTlsConnection] over [TcpStream].Source§fn is_tcp(&self) -> bool
fn is_tcp(&self) -> bool
Tells if current instance is [TcpStream] if true, or [UdpSocket] if false
fn should_append_len(&self) -> bool
fn poll_read<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = CDnsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn send<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sndbuf: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sndbuf: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sends data over wire.
Source§fn recv<'life0, 'life1, 'async_trait>(
&'life0 mut self,
rcvbuf: &'life1 mut [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recv<'life0, 'life1, 'async_trait>(
&'life0 mut self,
rcvbuf: &'life1 mut [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Receives data transmitted from remote host.
In nonblocking mode it should be called only after the event was polled
In blocking mode it will block until received or timeout.
Source§impl SocketTap<TokioSocketBase> for NetworkTap<TcpTlsConnection, TokioSocketBase>
impl SocketTap<TokioSocketBase> for NetworkTap<TcpTlsConnection, TokioSocketBase>
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
conn_timeout: Option<Duration>,
) -> Pin<Box<dyn Future<Output = CDnsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
conn_timeout: Option<Duration>,
) -> Pin<Box<dyn Future<Output = CDnsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connects to the remote host.
Source§fn is_encrypted(&self) -> bool
fn is_encrypted(&self) -> bool
Tells if current instace is
encrypted
i.e [TcpTlsConnection] over [TcpStream].Source§fn is_tcp(&self) -> bool
fn is_tcp(&self) -> bool
Tells if current instance is [TcpStream] if true, or [UdpSocket] if false
fn should_append_len(&self) -> bool
fn poll_read<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = CDnsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn send<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sndbuf: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sndbuf: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sends data over wire.
Source§fn recv<'life0, 'life1, 'async_trait>(
&'life0 mut self,
rcvbuf: &'life1 mut [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recv<'life0, 'life1, 'async_trait>(
&'life0 mut self,
rcvbuf: &'life1 mut [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Receives data transmitted from remote host.
In nonblocking mode it should be called only after the event was polled
In blocking mode it will block until received or timeout.
Source§impl SocketTap<TokioSocketBase> for NetworkTap<UdpSocket, TokioSocketBase>
impl SocketTap<TokioSocketBase> for NetworkTap<UdpSocket, TokioSocketBase>
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
_conn_timeout: Option<Duration>,
) -> Pin<Box<dyn Future<Output = CDnsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
_conn_timeout: Option<Duration>,
) -> Pin<Box<dyn Future<Output = CDnsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connects to the remote host.
Source§fn is_encrypted(&self) -> bool
fn is_encrypted(&self) -> bool
Tells if current instace is
encrypted
i.e [TcpTlsConnection] over [TcpStream].Source§fn is_tcp(&self) -> bool
fn is_tcp(&self) -> bool
Tells if current instance is [TcpStream] if true, or [UdpSocket] if false
fn should_append_len(&self) -> bool
fn poll_read<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = CDnsResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§fn send<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sndbuf: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn send<'life0, 'life1, 'async_trait>(
&'life0 mut self,
sndbuf: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sends data over wire.
Source§fn recv<'life0, 'life1, 'async_trait>(
&'life0 mut self,
rcvbuf: &'life1 mut [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn recv<'life0, 'life1, 'async_trait>(
&'life0 mut self,
rcvbuf: &'life1 mut [u8],
) -> Pin<Box<dyn Future<Output = CDnsResult<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Receives data transmitted from remote host.
In nonblocking mode it should be called only after the event was polled
In blocking mode it will block until received or timeout.
Source§impl SocketTaps<TokioSocketBase> for TokioSocketBase
impl SocketTaps<TokioSocketBase> for TokioSocketBase
type TcpSock = TcpStream
type UdpSock = UdpSocket
type TlsSock = TcpTlsConnection
fn new_tcp_socket( resolver: Arc<ResolveConfEntry>, timeout: Duration, ) -> CDnsResult<Box<NetworkTapType<TokioSocketBase>>>
fn new_udp_socket( resolver: Arc<ResolveConfEntry>, timeout: Duration, ) -> CDnsResult<Box<NetworkTapType<TokioSocketBase>>>
fn new_tls_socket( resolver: Arc<ResolveConfEntry>, timeout: Duration, ) -> CDnsResult<Box<NetworkTapType<TokioSocketBase>>>
Auto Trait Implementations§
impl Freeze for TokioSocketBase
impl RefUnwindSafe for TokioSocketBase
impl Send for TokioSocketBase
impl Sync for TokioSocketBase
impl Unpin for TokioSocketBase
impl UnwindSafe for TokioSocketBase
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