pub trait AbstractOutbound {
// Required methods
fn handle_tcp(
&self,
target_addr: TargetAddr,
stream: impl AbstractTcpStream,
via: Option<impl AbstractOutbound + Sized + Send>,
) -> impl Future<Output = Result<()>> + Send;
fn handle_udp(
&self,
socket: impl AbstractUdpSocket + 'static,
via: Option<impl AbstractOutbound + Sized + Send>,
) -> impl Future<Output = Result<()>> + Send;
}Required Methods§
Sourcefn handle_tcp(
&self,
target_addr: TargetAddr,
stream: impl AbstractTcpStream,
via: Option<impl AbstractOutbound + Sized + Send>,
) -> impl Future<Output = Result<()>> + Send
fn handle_tcp( &self, target_addr: TargetAddr, stream: impl AbstractTcpStream, via: Option<impl AbstractOutbound + Sized + Send>, ) -> impl Future<Output = Result<()>> + Send
TCP traffic which needs handled by outbound
Sourcefn handle_udp(
&self,
socket: impl AbstractUdpSocket + 'static,
via: Option<impl AbstractOutbound + Sized + Send>,
) -> impl Future<Output = Result<()>> + Send
fn handle_udp( &self, socket: impl AbstractUdpSocket + 'static, via: Option<impl AbstractOutbound + Sized + Send>, ) -> impl Future<Output = Result<()>> + Send
UDP traffic which needs handled by outbound
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.