Trait snocat::common::protocol::traits::Client [−][src]
pub trait Client { type Response: Send + 'static; fn handle(
self,
addr: RouteAddress,
tunnel: Box<dyn TunnelStream + Send + 'static>
) -> BoxFuture<'_, Result<Self::Response, ClientError>>; }
Associated Types
Required methods
fn handle(
self,
addr: RouteAddress,
tunnel: Box<dyn TunnelStream + Send + 'static>
) -> BoxFuture<'_, Result<Self::Response, ClientError>>
Implementors
impl<Reader, Writer> Client for TcpStreamClient<Reader, Writer> where
Reader: AsyncRead + Send + Unpin + 'static,
Writer: AsyncWrite + Send + Unpin + 'static,