pub struct NetworkInterface { /* private fields */ }
Implementations§
Source§impl NetworkInterface
impl NetworkInterface
pub fn hostname<T>(self, value: T) -> Self
pub fn ip<T>(self, value: T) -> Self
pub fn mac<T>(self, value: T) -> Self
pub fn name<T>(self, value: T) -> Self
pub fn namespace<T>(self, value: T) -> Self
pub fn subnet_prefix<T>(self, value: T) -> Self
pub fn type_<T>(self, value: T) -> Self
pub fn type_id<T>(self, value: T) -> Self
pub fn uid<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for NetworkInterface
impl Clone for NetworkInterface
Source§fn clone(&self) -> NetworkInterface
fn clone(&self) -> NetworkInterface
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 NetworkInterface
impl Debug for NetworkInterface
Source§impl Default for NetworkInterface
impl Default for NetworkInterface
Source§impl From<NetworkInterface> for NetworkInterface
impl From<NetworkInterface> for NetworkInterface
Source§fn from(value: NetworkInterface) -> Self
fn from(value: NetworkInterface) -> Self
Converts to this type from the input type.
Source§impl TryFrom<NetworkInterface> for NetworkInterface
impl TryFrom<NetworkInterface> for NetworkInterface
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: NetworkInterface) -> Result<Self, ConversionError>
fn try_from(value: NetworkInterface) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for NetworkInterface
impl RefUnwindSafe for NetworkInterface
impl Send for NetworkInterface
impl Sync for NetworkInterface
impl Unpin for NetworkInterface
impl UnwindSafe for NetworkInterface
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