pub enum DispatchOut<'a> {
None,
Tun(&'a [u8]),
Udp(&'a [EgressDatagram]),
Both(&'a [u8], &'a [EgressDatagram]),
}Expand description
What run_poll must do after a call to Dispatch::on_udp.
Variants§
None
Nothing to forward.
Tun(&'a [u8])
Write this slice to the TUN device (decoded inner packet).
Udp(&'a [EgressDatagram])
Send these datagrams on the UDP socket (ARQ retransmits).
Both(&'a [u8], &'a [EgressDatagram])
Write to TUN and send datagrams.
Auto Trait Implementations§
impl<'a> Freeze for DispatchOut<'a>
impl<'a> RefUnwindSafe for DispatchOut<'a>
impl<'a> Send for DispatchOut<'a>
impl<'a> Sync for DispatchOut<'a>
impl<'a> Unpin for DispatchOut<'a>
impl<'a> UnsafeUnpin for DispatchOut<'a>
impl<'a> UnwindSafe for DispatchOut<'a>
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