pub struct Tunnel { /* private fields */ }
Expand description
Tunnel Server
Implementations
Create a new Tunnel server forwarding to forward_addr
Create a new Tunnel server with context
Set UDP association’s expiry duration
Set total UDP association to be kept simultaneously in server
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
Auto Trait Implementations
impl !RefUnwindSafe for Tunnel
impl !UnwindSafe for Tunnel
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