pub struct Redir { /* private fields */ }
Expand description
Transparent Proxy
Implementations
Create a new transparent proxy server with context
Set UDP association’s expiry duration
Set total UDP association to be kept simultaneously in server
Set transparent proxy type of TCP relay, which is platform dependent
Set transparent proxy type of UDP relay, which is platform dependent
pub async fn run(
self,
tcp_addr: &ServerAddr,
udp_addr: &ServerAddr,
balancer: PingBalancer
) -> Result<()>
pub async fn run(
self,
tcp_addr: &ServerAddr,
udp_addr: &ServerAddr,
balancer: PingBalancer
) -> Result<()>
Start serving
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Redir
impl !UnwindSafe for Redir
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more