pub struct PortMapping {
pub host: u16,
pub guest: u16,
}Expand description
Host->guest published TCP port mapping serviced by the virtio gateway.
This stays crate-local so the launchers can translate CLI/data-layer port
mappings into the gateway runtime without pulling the gateway logic back
into the main smolvm crate.
Fields§
§host: u16Port bound on the host loopback interface.
guest: u16Port exposed inside the guest.
Implementations§
Trait Implementations§
Source§impl Clone for PortMapping
impl Clone for PortMapping
Source§fn clone(&self) -> PortMapping
fn clone(&self) -> PortMapping
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PortMapping
impl Debug for PortMapping
Source§impl PartialEq for PortMapping
impl PartialEq for PortMapping
Source§fn eq(&self, other: &PortMapping) -> bool
fn eq(&self, other: &PortMapping) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PortMapping
impl Eq for PortMapping
impl StructuralPartialEq for PortMapping
Auto Trait Implementations§
impl Freeze for PortMapping
impl RefUnwindSafe for PortMapping
impl Send for PortMapping
impl Sync for PortMapping
impl Unpin for PortMapping
impl UnsafeUnpin for PortMapping
impl UnwindSafe for PortMapping
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