pub struct UdpTunnel {
pub join: Pin<Box<dyn Future<Output = CloseReason> + Send>>,
pub cancel: CancellationToken,
}Expand description
Handle for an in-flight UDP session whose forwarder task already
runs in the background. join resolves with the session’s terminal
CloseReason after the forwarder unwinds (idle timeout, peer EOF,
listener cancellation, or upstream send failure). cancel
propagates the executor’s cancel token (typically the listener’s
force_cancel) into the forwarder loop. The fetch is responsible
for inserting the matching DispatchTable entry on session start
and removing it as the join future resolves — vane-core stays
agnostic about the table type.
Fields§
§join: Pin<Box<dyn Future<Output = CloseReason> + Send>>§cancel: CancellationTokenAuto Trait Implementations§
impl Freeze for UdpTunnel
impl !RefUnwindSafe for UdpTunnel
impl Send for UdpTunnel
impl !Sync for UdpTunnel
impl Unpin for UdpTunnel
impl UnsafeUnpin for UdpTunnel
impl !UnwindSafe for UdpTunnel
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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