pub struct UdpTunnelDispatcher { /* private fields */ }Implementations§
Source§impl UdpTunnelDispatcher
impl UdpTunnelDispatcher
Sourcepub fn new(config: UdpTunnelConfig) -> Result<UdpTunnelDispatcher>
pub fn new(config: UdpTunnelConfig) -> Result<UdpTunnelDispatcher>
Construct a UDP tunnel with the specified configuration
Sourcepub async fn dispatch(&mut self) -> Result<UdpTunnel>
pub async fn dispatch(&mut self) -> Result<UdpTunnel>
Dispatch UDP tunnel from this kind dispatcher
pub fn manager(&self) -> &Arc<UdpSocketManager>
Auto Trait Implementations§
impl Freeze for UdpTunnelDispatcher
impl !RefUnwindSafe for UdpTunnelDispatcher
impl Send for UdpTunnelDispatcher
impl Sync for UdpTunnelDispatcher
impl Unpin for UdpTunnelDispatcher
impl !UnwindSafe for UdpTunnelDispatcher
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