#[non_exhaustive]pub enum NeighbourAddress {
Inet(Ipv4Addr),
Inet6(Ipv6Addr),
Other(Vec<u8>),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
source§impl Clone for NeighbourAddress
impl Clone for NeighbourAddress
source§fn clone(&self) -> NeighbourAddress
fn clone(&self) -> NeighbourAddress
Returns a copy 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 NeighbourAddress
impl Debug for NeighbourAddress
source§impl Emitable for NeighbourAddress
impl Emitable for NeighbourAddress
source§impl From<Ipv4Addr> for NeighbourAddress
impl From<Ipv4Addr> for NeighbourAddress
source§impl From<Ipv6Addr> for NeighbourAddress
impl From<Ipv6Addr> for NeighbourAddress
source§impl PartialEq for NeighbourAddress
impl PartialEq for NeighbourAddress
source§fn eq(&self, other: &NeighbourAddress) -> bool
fn eq(&self, other: &NeighbourAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NeighbourAddress
impl StructuralPartialEq for NeighbourAddress
Auto Trait Implementations§
impl RefUnwindSafe for NeighbourAddress
impl Send for NeighbourAddress
impl Sync for NeighbourAddress
impl Unpin for NeighbourAddress
impl UnwindSafe for NeighbourAddress
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