pub enum InboundCommand {
TcpAccepted {
host_port: u16,
container_port: u16,
stream: TcpStream,
},
UdpReceived {
host_port: u16,
container_port: u16,
data: Vec<u8>,
reply_tx: Sender<Vec<u8>>,
client_addr: SocketAddr,
},
}Expand description
Command sent from InboundListenerManager listener tasks to the datapath.
Variants§
TcpAccepted
A new TCP connection was accepted on a host listener.
UdpReceived
A UDP datagram was received on a host listener.
Auto Trait Implementations§
impl !Freeze for InboundCommand
impl RefUnwindSafe for InboundCommand
impl Send for InboundCommand
impl Sync for InboundCommand
impl Unpin for InboundCommand
impl UnsafeUnpin for InboundCommand
impl UnwindSafe for InboundCommand
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