Struct nmstate::InterfaceIpAddr
source · #[non_exhaustive]pub struct InterfaceIpAddr {
pub ip: IpAddr,
pub prefix_length: u8,
pub mptcp_flags: Option<Vec<MptcpAddressFlag>>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.ip: IpAddr
IP address.
prefix_length: u8
Prefix length.
Serialize and deserialize to/from prefix-length
.
mptcp_flags: Option<Vec<MptcpAddressFlag>>
MPTCP flag on this IP address. Ignored when applying as nmstate does not support support IP address specific MPTCP flags. You should apply MPTCP flags at interface level via [BaseInterface.mptcp].
Trait Implementations
sourceimpl Clone for InterfaceIpAddr
impl Clone for InterfaceIpAddr
sourcefn clone(&self) -> InterfaceIpAddr
fn clone(&self) -> InterfaceIpAddr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for InterfaceIpAddr
impl Debug for InterfaceIpAddr
sourceimpl Default for InterfaceIpAddr
impl Default for InterfaceIpAddr
sourceimpl<'de> Deserialize<'de> for InterfaceIpAddr
impl<'de> Deserialize<'de> for InterfaceIpAddr
sourcefn 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
sourceimpl From<&InterfaceIpAddr> for String
impl From<&InterfaceIpAddr> for String
sourcefn from(v: &InterfaceIpAddr) -> String
fn from(v: &InterfaceIpAddr) -> String
Converts to this type from the input type.
sourceimpl PartialEq<InterfaceIpAddr> for InterfaceIpAddr
impl PartialEq<InterfaceIpAddr> for InterfaceIpAddr
sourcefn eq(&self, other: &InterfaceIpAddr) -> bool
fn eq(&self, other: &InterfaceIpAddr) -> bool
sourceimpl Serialize for InterfaceIpAddr
impl Serialize for InterfaceIpAddr
sourceimpl TryFrom<&str> for InterfaceIpAddr
impl TryFrom<&str> for InterfaceIpAddr
impl Eq for InterfaceIpAddr
impl StructuralEq for InterfaceIpAddr
impl StructuralPartialEq for InterfaceIpAddr
Auto Trait Implementations
impl RefUnwindSafe for InterfaceIpAddr
impl Send for InterfaceIpAddr
impl Sync for InterfaceIpAddr
impl Unpin for InterfaceIpAddr
impl UnwindSafe for InterfaceIpAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
sourcefn null_value() -> T
fn null_value() -> T
The none-equivalent value.