pub struct DockerPeerInfo {
pub container_id: String,
pub container_name: String,
pub private_ip: Ipv4Addr,
pub public_ip: Ipv4Addr,
pub host_ws_port: u16,
pub network_port: u16,
pub is_gateway: bool,
pub nat_router_id: Option<String>,
}Expand description
Information about a peer running in a Docker container
Fields§
§container_id: String§container_name: String§private_ip: Ipv4AddrIP address on private network (behind NAT)
public_ip: Ipv4AddrIP address on public network (for gateways) or NAT router’s public IP (for peers)
host_ws_port: u16Port mapped to host for WebSocket API access
network_port: u16Network port inside container
is_gateway: boolWhether this is a gateway (not behind NAT)
nat_router_id: Option<String>NAT router container ID (None for gateways)
Trait Implementations§
Source§impl Clone for DockerPeerInfo
impl Clone for DockerPeerInfo
Source§fn clone(&self) -> DockerPeerInfo
fn clone(&self) -> DockerPeerInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DockerPeerInfo
impl RefUnwindSafe for DockerPeerInfo
impl Send for DockerPeerInfo
impl Sync for DockerPeerInfo
impl Unpin for DockerPeerInfo
impl UnwindSafe for DockerPeerInfo
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