Struct embedded_svc::ipv4::RouterConfiguration
source · [−]pub struct RouterConfiguration {
pub subnet: Subnet,
pub dhcp_enabled: bool,
pub dns: Option<Ipv4Addr>,
pub secondary_dns: Option<Ipv4Addr>,
}
Fields
subnet: Subnet
dhcp_enabled: bool
dns: Option<Ipv4Addr>
secondary_dns: Option<Ipv4Addr>
Trait Implementations
sourceimpl Clone for RouterConfiguration
impl Clone for RouterConfiguration
sourcefn clone(&self) -> RouterConfiguration
fn clone(&self) -> RouterConfiguration
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 more
sourceimpl Debug for RouterConfiguration
impl Debug for RouterConfiguration
sourceimpl Default for RouterConfiguration
impl Default for RouterConfiguration
sourcefn default() -> RouterConfiguration
fn default() -> RouterConfiguration
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for RouterConfiguration
impl<'de> Deserialize<'de> for RouterConfiguration
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 PartialEq<RouterConfiguration> for RouterConfiguration
impl PartialEq<RouterConfiguration> for RouterConfiguration
sourcefn eq(&self, other: &RouterConfiguration) -> bool
fn eq(&self, other: &RouterConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RouterConfiguration) -> bool
fn ne(&self, other: &RouterConfiguration) -> bool
This method tests for !=
.
sourceimpl Serialize for RouterConfiguration
impl Serialize for RouterConfiguration
impl Copy for RouterConfiguration
impl Eq for RouterConfiguration
impl StructuralEq for RouterConfiguration
impl StructuralPartialEq for RouterConfiguration
Auto Trait Implementations
impl RefUnwindSafe for RouterConfiguration
impl Send for RouterConfiguration
impl Sync for RouterConfiguration
impl Unpin for RouterConfiguration
impl UnwindSafe for RouterConfiguration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more