pub struct TailnetAddress {
pub ipv4: Ipv4Net,
pub ipv6: Ipv6Net,
}Expand description
Addresses for a node within a tailnet.
Fields§
§ipv4: Ipv4NetThe IPv4 address of the node in the tailnet.
ipv6: Ipv6NetThe IPv6 address of the node in the tailnet.
Implementations§
Source§impl TailnetAddress
impl TailnetAddress
Sourcepub fn contains(&self, addr: IpAddr) -> bool
pub fn contains(&self, addr: IpAddr) -> bool
Report whether addr matches either address in this TailnetAddress.
Trait Implementations§
Source§impl Clone for TailnetAddress
impl Clone for TailnetAddress
Source§fn clone(&self) -> TailnetAddress
fn clone(&self) -> TailnetAddress
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 TailnetAddress
impl Debug for TailnetAddress
Source§impl Hash for TailnetAddress
impl Hash for TailnetAddress
Source§impl PartialEq for TailnetAddress
impl PartialEq for TailnetAddress
impl Eq for TailnetAddress
impl StructuralPartialEq for TailnetAddress
Auto Trait Implementations§
impl Freeze for TailnetAddress
impl RefUnwindSafe for TailnetAddress
impl Send for TailnetAddress
impl Sync for TailnetAddress
impl Unpin for TailnetAddress
impl UnsafeUnpin for TailnetAddress
impl UnwindSafe for TailnetAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.