#[non_exhaustive]pub struct LinkLayerAddress {
pub mac_address: String,
pub ip_address: String,
/* private fields */
}Expand description
LinkLayerAddress contains an IP address and corresponding link-layer address.
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.mac_address: StringThe MAC address of this neighbor.
ip_address: StringThe IP address of this neighbor.
Implementations§
Source§impl LinkLayerAddress
impl LinkLayerAddress
pub fn new() -> Self
Sourcepub fn set_mac_address<T: Into<String>>(self, v: T) -> Self
pub fn set_mac_address<T: Into<String>>(self, v: T) -> Self
Sets the value of mac_address.
§Example
ⓘ
let x = LinkLayerAddress::new().set_mac_address("example");Sourcepub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for LinkLayerAddress
impl Clone for LinkLayerAddress
Source§fn clone(&self) -> LinkLayerAddress
fn clone(&self) -> LinkLayerAddress
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 LinkLayerAddress
impl Debug for LinkLayerAddress
Source§impl Default for LinkLayerAddress
impl Default for LinkLayerAddress
Source§fn default() -> LinkLayerAddress
fn default() -> LinkLayerAddress
Returns the “default value” for a type. Read more
Source§impl Message for LinkLayerAddress
impl Message for LinkLayerAddress
Source§impl PartialEq for LinkLayerAddress
impl PartialEq for LinkLayerAddress
impl StructuralPartialEq for LinkLayerAddress
Auto Trait Implementations§
impl Freeze for LinkLayerAddress
impl RefUnwindSafe for LinkLayerAddress
impl Send for LinkLayerAddress
impl Sync for LinkLayerAddress
impl Unpin for LinkLayerAddress
impl UnsafeUnpin for LinkLayerAddress
impl UnwindSafe for LinkLayerAddress
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