pub enum AddressMapping {
Simple(String),
Complex {
lifetime: PreferredLifetime,
label: String,
},
}
Variants§
Simple(String)
Complex
Fields
§
lifetime: PreferredLifetime
Default: forever. This can be forever or 0 and corresponds to the PreferredLifetime option in systemd-networkd’s Address section. Currently supported on the networkd backend only.
Trait Implementations§
Source§impl Clone for AddressMapping
impl Clone for AddressMapping
Source§fn clone(&self) -> AddressMapping
fn clone(&self) -> AddressMapping
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 AddressMapping
impl Debug for AddressMapping
Source§impl<'de> Deserialize<'de> for AddressMapping
impl<'de> Deserialize<'de> for AddressMapping
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
Source§impl PartialEq for AddressMapping
impl PartialEq for AddressMapping
Source§impl Serialize for AddressMapping
impl Serialize for AddressMapping
impl Eq for AddressMapping
impl StructuralPartialEq for AddressMapping
Auto Trait Implementations§
impl Freeze for AddressMapping
impl RefUnwindSafe for AddressMapping
impl Send for AddressMapping
impl Sync for AddressMapping
impl Unpin for AddressMapping
impl UnwindSafe for AddressMapping
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