pub struct PortForward {
pub protocol: NetworkProtocol,
pub host_address: Ipv4Addr,
pub host_port: u16,
pub guest_port: u16,
}Expand description
A host-loopback QEMU user-network port forward.
Fields§
§protocol: NetworkProtocolTransport protocol.
host_address: Ipv4AddrLoopback address on which QEMU listens.
host_port: u16Host-side listener port.
guest_port: u16Destination port inside the guest.
Trait Implementations§
Source§impl Clone for PortForward
impl Clone for PortForward
Source§impl Debug for PortForward
impl Debug for PortForward
Source§impl<'de> Deserialize<'de> for PortForward
impl<'de> Deserialize<'de> for PortForward
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PortForward
Source§impl PartialEq for PortForward
impl PartialEq for PortForward
Source§impl Serialize for PortForward
impl Serialize for PortForward
impl StructuralPartialEq for PortForward
Auto Trait Implementations§
impl Forget for PortForward
impl Freeze for PortForward
impl Move for PortForward
impl RefUnwindSafe for PortForward
impl Send for PortForward
impl Sync for PortForward
impl Unpin for PortForward
impl UnsafeUnpin for PortForward
impl UnwindSafe for PortForward
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