pub struct HostPortConfig {
pub protocol: HostPortProtocol,
pub host_address: Option<HostIpAddress>,
pub host_port: HostPort,
pub guest_port: u16,
}Expand description
Configuration for forwarding a host port into the guest.
Fields§
§protocol: HostPortProtocolThe protocol to forward.
host_address: Option<HostIpAddress>The host IP address to bind to, or None to bind to all interfaces.
host_port: HostPortThe host port to listen on.
guest_port: u16The guest port to forward to.
Trait Implementations§
Source§impl Debug for HostPortConfig
impl Debug for HostPortConfig
Source§impl DefaultEncoding for HostPortConfig
impl DefaultEncoding for HostPortConfig
Source§impl<'encoding> StructDecodeMetadata<'encoding, Resource> for HostPortConfig
impl<'encoding> StructDecodeMetadata<'encoding, Resource> for HostPortConfig
Source§impl StructEncodeMetadata<Resource> for HostPortConfig
impl StructEncodeMetadata<Resource> for HostPortConfig
Auto Trait Implementations§
impl Freeze for HostPortConfig
impl !RefUnwindSafe for HostPortConfig
impl Send for HostPortConfig
impl Sync for HostPortConfig
impl Unpin for HostPortConfig
impl UnsafeUnpin for HostPortConfig
impl !UnwindSafe for HostPortConfig
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in [
MessageEncode::compute_message_size].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in [
MessageEncode::write_message].