pub enum NetAddress {
V4(Ipv4Addr),
V6(Ipv6Addr),
Mac(MacAddress),
Usize(usize),
}
Variants§
Implementations§
Source§impl NetAddress
impl NetAddress
Sourcepub fn is_broadcast(&self) -> bool
pub fn is_broadcast(&self) -> bool
Returns true if this is a broadcast address.
Sourcepub fn is_multicast(&self) -> bool
pub fn is_multicast(&self) -> bool
Returns true if this is a multicast address.
Trait Implementations§
Source§impl<'de> BorrowByteDecode<'de> for NetAddress
impl<'de> BorrowByteDecode<'de> for NetAddress
Source§impl BorrowByteEncode for NetAddress
impl BorrowByteEncode for NetAddress
Source§impl ByteDecode for NetAddress
impl ByteDecode for NetAddress
Source§impl ByteEncode for NetAddress
impl ByteEncode for NetAddress
Source§impl Clone for NetAddress
impl Clone for NetAddress
Source§fn clone(&self) -> NetAddress
fn clone(&self) -> NetAddress
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 NetAddress
impl Debug for NetAddress
Source§impl Default for NetAddress
impl Default for NetAddress
Source§impl Display for NetAddress
impl Display for NetAddress
Source§impl FromStr for NetAddress
impl FromStr for NetAddress
Source§impl Hash for NetAddress
impl Hash for NetAddress
Source§impl PartialEq for NetAddress
impl PartialEq for NetAddress
impl Eq for NetAddress
impl StructuralPartialEq for NetAddress
Auto Trait Implementations§
impl Freeze for NetAddress
impl RefUnwindSafe for NetAddress
impl Send for NetAddress
impl Sync for NetAddress
impl Unpin for NetAddress
impl UnwindSafe for NetAddress
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