pub struct NetworkPlan {
pub cidr: String,
pub declared_cidr: String,
pub host: Ipv4Addr,
pub gateway: Option<String>,
pub internet: bool,
pub tc: Option<Tc>,
pub vlan: Option<(String, u16)>,
pub ipv6: Option<Ipv6Plan>,
pub mtu: Option<u16>,
}Expand description
A network, as the target lays it out.
Fields§
§cidr: StringIts block on this target (the Docker block on the Docker targets).
declared_cidr: StringIts block as the author wrote it.
host: Ipv4AddrThe host’s own address on it (Docker’s bridge, the hypervisor).
gateway: Option<String>A machine of the environment that routes it, if any.
internet: boolWhether its machines may reach the internet.
tc: Option<Tc>Link impairment on traffic entering it.
vlan: Option<(String, u16)>The LAN and VLAN id it is, when it is a LAN’s VLAN.
ipv6: Option<Ipv6Plan>Its IPv6 side, when it is dual-stack or IPv6-only.
mtu: Option<u16>The largest packet it carries, when the spec sets one (mtu).
Trait Implementations§
Source§impl Clone for NetworkPlan
impl Clone for NetworkPlan
Source§impl Debug for NetworkPlan
impl Debug for NetworkPlan
Source§impl PartialEq for NetworkPlan
impl PartialEq for NetworkPlan
impl StructuralPartialEq for NetworkPlan
Auto Trait Implementations§
impl Freeze for NetworkPlan
impl RefUnwindSafe for NetworkPlan
impl Send for NetworkPlan
impl Sync for NetworkPlan
impl Unpin for NetworkPlan
impl UnsafeUnpin for NetworkPlan
impl UnwindSafe for NetworkPlan
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