pub struct KernelIpParam {
pub client: Ipv4Addr,
pub gateway: Ipv4Addr,
pub netmask: Ipv4Addr,
}Expand description
Parsed representation of the Linux kernel ip= boot parameter.
Format: ip=<client>::<gateway>:<netmask>::eth0:off
Constructed by the sandbox manager
(arcbox_computer_runtime::ComputerManager) when building boot args, and
parsed by vm-agent to derive the DNS nameserver from the gateway.
fmt::Display and FromStr round-trip through the same format so the
encoding is defined exactly once.
Fields§
§client: Ipv4AddrGuest IP address (the <client> field).
gateway: Ipv4AddrGateway IP (also serves as the guest DNS nameserver).
netmask: Ipv4AddrSubnet mask derived from the network prefix length.
Trait Implementations§
Source§impl Clone for KernelIpParam
impl Clone for KernelIpParam
Source§fn clone(&self) -> KernelIpParam
fn clone(&self) -> KernelIpParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KernelIpParam
impl Debug for KernelIpParam
Source§impl Display for KernelIpParam
impl Display for KernelIpParam
impl Eq for KernelIpParam
Source§impl FromStr for KernelIpParam
impl FromStr for KernelIpParam
Source§impl PartialEq for KernelIpParam
impl PartialEq for KernelIpParam
impl StructuralPartialEq for KernelIpParam
Auto Trait Implementations§
impl Freeze for KernelIpParam
impl RefUnwindSafe for KernelIpParam
impl Send for KernelIpParam
impl Sync for KernelIpParam
impl Unpin for KernelIpParam
impl UnsafeUnpin for KernelIpParam
impl UnwindSafe for KernelIpParam
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.