pub struct Lan {
pub cidr: String,
pub internet: bool,
pub switch: Option<String>,
pub vlan: Option<u16>,
pub device: Option<String>,
pub tc: Option<Tc>,
}Expand description
A LAN (or VLAN): one shared segment for every machine on it.
Fields§
§cidr: StringAn IPv4 block inside 10.0.0.0/8, /24 to /29 (Isoloom’s rule), e.g. 10.10.1.0/24.
internet: boolWhether machines on it may reach the internet (Isoloom’s default: yes).
switch: Option<String>A VLAN of a switch: the switch (or the first of the switches a trunk joins) it belongs to.
In the spec it nests under that switch’s LAN (sw1.vlan10).
vlan: Option<u16>A VLAN’s id on its switch.
device: Option<String>The switch’s machine when it runs a Cisco OS (a node of its own, with no networks):
Isoloom’s switch on the LAN its VLANs nest under.
tc: Option<Tc>How the LAN behaves (a slow or lossy link): Isoloom’s tc.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lan
impl<'de> Deserialize<'de> for Lan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Lan
Auto Trait Implementations§
impl Freeze for Lan
impl RefUnwindSafe for Lan
impl Send for Lan
impl Sync for Lan
impl Unpin for Lan
impl UnsafeUnpin for Lan
impl UnwindSafe for Lan
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