pub enum IpAddress {
    Ipv4([u8; 4]),
}Variants§
Implementations§
source§impl IpAddress
 
impl IpAddress
pub fn parse_ipv4(addr: &str) -> Option<Self>
pub fn to_address(&self) -> String
pub fn to_u32(&self) -> u32
pub fn is_matches(&self, socket_addr: &SocketAddr) -> bool
Trait Implementations§
source§impl Ord for IpAddress
 
impl Ord for IpAddress
source§impl PartialEq for IpAddress
 
impl PartialEq for IpAddress
source§impl PartialOrd for IpAddress
 
impl PartialOrd for IpAddress
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Eq for IpAddress
impl StructuralEq for IpAddress
impl StructuralPartialEq for IpAddress
Auto Trait Implementations§
impl RefUnwindSafe for IpAddress
impl Send for IpAddress
impl Sync for IpAddress
impl Unpin for IpAddress
impl UnwindSafe for IpAddress
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