pub struct InstanceNet {
pub tap_dev: String,
pub mac: String,
pub guest_ip: String,
pub gateway_ip: String,
pub cidr: u8,
}Expand description
Per-instance network configuration.
Fields§
§tap_dev: StringTAP device name: “tn<net_id>i
mac: StringDeterministic MAC: “02:xx:xx:xx:xx:xx”
guest_ip: StringGuest IP within tenant subnet, e.g. “10.240.3.5”
gateway_ip: StringTenant gateway, e.g. “10.240.3.1”
cidr: u8CIDR prefix length from tenant subnet, e.g. 24
Trait Implementations§
Source§impl Clone for InstanceNet
impl Clone for InstanceNet
Source§fn clone(&self) -> InstanceNet
fn clone(&self) -> InstanceNet
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 moreSource§impl Debug for InstanceNet
impl Debug for InstanceNet
Source§impl<'de> Deserialize<'de> for InstanceNet
impl<'de> Deserialize<'de> for InstanceNet
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
Auto Trait Implementations§
impl Freeze for InstanceNet
impl RefUnwindSafe for InstanceNet
impl Send for InstanceNet
impl Sync for InstanceNet
impl Unpin for InstanceNet
impl UnsafeUnpin for InstanceNet
impl UnwindSafe for InstanceNet
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