#[non_exhaustive]pub struct NetworkInterfaceBuilder { /* private fields */ }
Expand description
A builder for NetworkInterface
.
Implementations§
source§impl NetworkInterfaceBuilder
impl NetworkInterfaceBuilder
sourcepub fn ipv4_address(self, input: impl Into<String>) -> Self
pub fn ipv4_address(self, input: impl Into<String>) -> Self
The Internet Protocol version 4 (IPv4) address of the interface.
sourcepub fn set_ipv4_address(self, input: Option<String>) -> Self
pub fn set_ipv4_address(self, input: Option<String>) -> Self
The Internet Protocol version 4 (IPv4) address of the interface.
sourcepub fn get_ipv4_address(&self) -> &Option<String>
pub fn get_ipv4_address(&self) -> &Option<String>
The Internet Protocol version 4 (IPv4) address of the interface.
sourcepub fn mac_address(self, input: impl Into<String>) -> Self
pub fn mac_address(self, input: impl Into<String>) -> Self
The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
sourcepub fn set_mac_address(self, input: Option<String>) -> Self
pub fn set_mac_address(self, input: Option<String>) -> Self
The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
sourcepub fn get_mac_address(&self) -> &Option<String>
pub fn get_mac_address(&self) -> &Option<String>
The Media Access Control (MAC) address of the interface.
This is currently unsupported and will not be returned in output.
sourcepub fn ipv6_address(self, input: impl Into<String>) -> Self
pub fn ipv6_address(self, input: impl Into<String>) -> Self
The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
sourcepub fn set_ipv6_address(self, input: Option<String>) -> Self
pub fn set_ipv6_address(self, input: Option<String>) -> Self
The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
sourcepub fn get_ipv6_address(&self) -> &Option<String>
pub fn get_ipv6_address(&self) -> &Option<String>
The Internet Protocol version 6 (IPv6) address of the interface. Currently not supported.
sourcepub fn build(self) -> NetworkInterface
pub fn build(self) -> NetworkInterface
Consumes the builder and constructs a NetworkInterface
.
Trait Implementations§
source§impl Clone for NetworkInterfaceBuilder
impl Clone for NetworkInterfaceBuilder
source§fn clone(&self) -> NetworkInterfaceBuilder
fn clone(&self) -> NetworkInterfaceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NetworkInterfaceBuilder
impl Debug for NetworkInterfaceBuilder
source§impl Default for NetworkInterfaceBuilder
impl Default for NetworkInterfaceBuilder
source§fn default() -> NetworkInterfaceBuilder
fn default() -> NetworkInterfaceBuilder
source§impl PartialEq for NetworkInterfaceBuilder
impl PartialEq for NetworkInterfaceBuilder
source§fn eq(&self, other: &NetworkInterfaceBuilder) -> bool
fn eq(&self, other: &NetworkInterfaceBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NetworkInterfaceBuilder
Auto Trait Implementations§
impl Freeze for NetworkInterfaceBuilder
impl RefUnwindSafe for NetworkInterfaceBuilder
impl Send for NetworkInterfaceBuilder
impl Sync for NetworkInterfaceBuilder
impl Unpin for NetworkInterfaceBuilder
impl UnwindSafe for NetworkInterfaceBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more