pub struct PortForward {
pub host_ip: Ipv4Addr,
pub host_port: u16,
pub guest_port: u16,
}Expand description
Inbound host-to-guest TCP port forward ([host_ip:]host_port:guest_port).
Defaults host_ip to 127.0.0.1 so forwarded guest services are only reachable locally
unless explicitly bound to another interface (e.g. 0.0.0.0:8080:80).
Fields§
§host_ip: Ipv4Addr§host_port: u16§guest_port: u16Implementations§
Trait Implementations§
Source§impl Clone for PortForward
impl Clone for PortForward
Source§impl Debug for PortForward
impl Debug for PortForward
impl Eq for PortForward
Source§impl PartialEq for PortForward
impl PartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more